From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 176A2C4332F for ; Fri, 21 Oct 2022 10:51:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229796AbiJUKvj (ORCPT ); Fri, 21 Oct 2022 06:51:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230040AbiJUKvi (ORCPT ); Fri, 21 Oct 2022 06:51:38 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E0A240E3A for ; Fri, 21 Oct 2022 03:51:35 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id z97so4271995ede.8 for ; Fri, 21 Oct 2022 03:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Jgt0ycOYJ7G6rNsip+cHgRZva60xBR8mosLwh/fmmCo=; b=RvKbBiItCRFasVFV38vBAMddffxsCRIrtLIxpdcAU6gPW8ez0dw3eif8JtpzogBgG7 h4OLwldd/2eE77Ijnh0bYKpnbkPJ+wIAKfmWeAfFkCREBrV96ErMfffHMPzJ4W0Oh9uV IYhdFrSPDsG0S8onAknig4pbG3ASI9R0+6WFsmXEtLzsN3NJSGRkHSQ3v2gam+fmDymk FonJYk/vKDPkvkdE+8Q6OqGkq5zTpRyd2KURaumrp/9BLtu0l2Ykt7aPuwHGsrd0YchX NSLN65i/iBV5os5uyMKa+5Ug6P4R280H3bvDWyR8H8PS89+FeQoiqnPkUSX8AGYULJG4 dX+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Jgt0ycOYJ7G6rNsip+cHgRZva60xBR8mosLwh/fmmCo=; b=ZqV9ZKAgc5nW9Z8Vu/GTzIXP0fvNFESoisXzIXH7eFgZAh38wkodsNIrCAK7tsO6tt rYGLn+9+xhs1GL86xBOX5xRcA8pvz2GOPc/52tFgw9HU5QkXBiekd0ZgoWelkIENrRyv xpawVpb2f0QLpa4IG0bY3IyIW+UIH9lygmWnue9xLWuStEwzWAPQXr63+WO6Cuj/sU/S vTdxX7FHBZe9ZRh0CL6vkUJ/nALBnDYvcH7pv7Y79GsQr7sekikShRv+W74ictZo9QT6 6Qvb0xHUFFA2z0pKsDIr6VNP0JTJK8u0xIaZxbou1cbrdM2vulXH4K6B9WXntdg10Zob fpWw== X-Gm-Message-State: ACrzQf0RfWCzY7LZRxkK+NNA0YsRfUn1IBf+C8cYSxIKz6fkcbD+02vg FRx25uq2A5o8YVMBGXwBU7kErg== X-Google-Smtp-Source: AMsMyM5Ru0+enSG64Hda4euKiqwj4+cbzwvdnozFg+Y03I4uBKi+QUy/KL6kwJ11cpZLangRMU3l6w== X-Received: by 2002:a17:907:168c:b0:78d:8b6c:a209 with SMTP id hc12-20020a170907168c00b0078d8b6ca209mr15801333ejc.185.1666349493903; Fri, 21 Oct 2022 03:51:33 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:25b:e73e:85eb:ae6e? ([2a05:6e02:1041:c10:25b:e73e:85eb:ae6e]) by smtp.googlemail.com with ESMTPSA id o23-20020a056402039700b00460fae424e2sm1910990edv.11.2022.10.21.03.51.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Oct 2022 03:51:33 -0700 (PDT) Message-ID: <75f2ef94-596c-3ce1-ae65-7a1355435151@linaro.org> Date: Fri, 21 Oct 2022 12:51:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] thermal/drivers/tegra: Fix crash when getting critical temp Content-Language: en-US To: Jon Hunter , "Rafael J . Wysocki" , Thierry Reding Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org References: <20221010150311.40384-1-jonathanh@nvidia.com> From: Daniel Lezcano In-Reply-To: <20221010150311.40384-1-jonathanh@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On 10/10/2022 17:03, Jon Hunter wrote: > Commit 13bea86623be ("thermal/of: Remove of_thermal_get_crit_temp()") > removed the function of_thermal_get_crit_temp() and this is causing a > NULL pointer deference crash when attempting to call the 'get_crit_temp' > function pointer because this function pointer is no longer initialised. > Fix this by replacing the call to the 'get_crit_temp' function pointer > with a call to the function thermal_zone_get_crit_temp() instead. > > Fixes: 13bea86623be ("thermal/of: Remove of_thermal_get_crit_temp()") > Signed-off-by: Jon Hunter > --- Applied, thanks -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog