Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4650570rwi; Mon, 17 Oct 2022 08:56:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5elZvT5y0YvuLeD/2idFrB9QdOSKENzvQOgC3dtBG+L82+Gw2EZvwp6/zWYu7CPPJOJGiA X-Received: by 2002:a17:907:d22:b0:78e:2788:51ae with SMTP id gn34-20020a1709070d2200b0078e278851aemr8920465ejc.689.1666022169227; Mon, 17 Oct 2022 08:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666022169; cv=none; d=google.com; s=arc-20160816; b=npSUQJ+pEql+c6M1Tz18dwN85rq/b5F1cFHjNLWRHyHLzJrhy0wTTWbyI0zlR+k9Fd pcIkU9oVgvYkJ6n+tnZnGxKsSacJ8HoiPqANAVGIm0tK6jzawbjZzVIebLPvp4kBR3C+ +L3K+2hEx3CzL8B8Wd4lgeyutjCKraGHvV0qb522d4cmRRE3kRo3uckgZ997278j5tZc DMSibKaZfn9d1O9uidYXP3NZIAwkJVSeFKM3WuKvfhCzW8O6T8gYRn5xm0fuf9u2SH4K xEBZl21+Pe5GwqIi0WVuPFvLtIu5Xj3LXxB+6KL/UdZB5GHavXFupvMwTNVM0cO7PfnH zKNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Vq5kCnUtoL+6Ezgs4d51zvzN1gUGsMC/kvnhiOvxhZA=; b=IHIweQi3ZA1q27SKCLZa5ZbLgvbhJDuPICoTKTpK1oTm4ycWch8wGdJpz6VV1uZRj0 5KFzpcxKitZwfEQgXq8Nm1d51ukEc9ruxVa6YQ9m1O2bYDKfoXJiO8lcYLkd5vBCx3JO t5UZrHnjYjjm11b6mhcmDAeqZy7p26+BEP7UCh/HPU3Bi8GbyPMfzCN/z7b4uU89UjRm GTmV3EgFA1FDSTlvm/CFXzfK9QKctc3BJcvQjEU8VU3LvK2DZNAEqNIpHChL+ppTf8+F PZS1R3dXvhxdlxu0C1OWKaFeAxWJ/080exiURTHNNQYfxFGZeadP+KTTes+ssmQUrlzJ ZmXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tz3RbYuU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xg11-20020a170907320b00b007813b1924ccsi9332969ejb.934.2022.10.17.08.55.43; Mon, 17 Oct 2022 08:56:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tz3RbYuU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230292AbiJQOOl (ORCPT + 99 others); Mon, 17 Oct 2022 10:14:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230288AbiJQOOi (ORCPT ); Mon, 17 Oct 2022 10:14:38 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1971C11A2A for ; Mon, 17 Oct 2022 07:14:35 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id u10so18703113wrq.2 for ; Mon, 17 Oct 2022 07:14: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=Vq5kCnUtoL+6Ezgs4d51zvzN1gUGsMC/kvnhiOvxhZA=; b=tz3RbYuUFruNlDazal9vUSlnltiLDHvOxIl0LPUBuv6NxoHo4Vq9jqpO+al2nQKQI5 jgcl8xIehpkHmpp4r4Q+IWD+dhvC9i80tQ5Wzp5nQou+s9jLpG8rhqY+Uh7I5z9wMxlt QF2zH65EKK1nXRdZNuvu7k7GEGtmX3+rZ5JWHfOoipbWSqjwn6KyzKKMzAZ85ZEuOHMV bpTAOFrf+BiU+6sZmU/F2OjMtWb1YvTZFJTAJeSXADdnC0J3jbbszwQAP0UX8EnC6t2Q DvyGE8C+YTFM/9xHctANb6CMFAo6zi46s9s+OfhIkFxaQNacgLnWj/3UByTYBYsKua1p 9K6A== 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=Vq5kCnUtoL+6Ezgs4d51zvzN1gUGsMC/kvnhiOvxhZA=; b=Tw/VDvJ1sB64YXbCs0QrAG6k13MrvtZbqrPP3FXSkg8cbyXKSwx4xuFYJKUGZj1egr B+D0vJpqUyKilZIyJZP+EzAt2nSYkQvlcM7TCgsKWF9i2BD3j1q63PsAnvK8tG/54ffc +5VG1K66+zp5+ye7rohu+/jEcIJlDQxHtBvU6v+My/Lx7KumzRLSw3BB6faBxhyQ+VBC WMby1h1197hYL7PLiqWPqOn0hUshCt9JoI9HSvJbwHOL0IQEK/r22JiMG3zwgFPQNNUZ Ax+oasPY5FGxPKAbZlZFtt2IQnhH7LTWWbk+JPBQCCi4rC95RlJgMK+uvsmrXH28gOBF AGMw== X-Gm-Message-State: ACrzQf1SBTyZmSOXPkVw4eI+KQSq4GYs2aOBx2EhgBeCKhqBFwd9A25w MENWQeiJUdTmIL/fBXndy+F2SA== X-Received: by 2002:adf:fd4a:0:b0:22d:d3aa:e004 with SMTP id h10-20020adffd4a000000b0022dd3aae004mr6402643wrs.173.1666016073416; Mon, 17 Oct 2022 07:14:33 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:ea6:24ea:3fe7:64b9? ([2a05:6e02:1041:c10:ea6:24ea:3fe7:64b9]) by smtp.googlemail.com with ESMTPSA id x17-20020adff0d1000000b00231ed902a4esm8608659wro.5.2022.10.17.07.14.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Oct 2022 07:14:33 -0700 (PDT) Message-ID: Date: Mon, 17 Oct 2022 16:14:31 +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/exynos: Fix NULL pointer dereference when getting the critical temp Content-Language: en-US To: Marek Szyprowski , rafael@kernel.org Cc: Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Amit Kucheria , Zhang Rui , Alim Akhtar , "open list:SAMSUNG THERMAL DRIVER" , "open list:SAMSUNG THERMAL DRIVER" , "moderated list:ARM/SAMSUNG S3C, S5P AND EXYNOS ARM ARCHITECTURES" , open list References: <4e4d873b-4a40-334a-34e7-defb0fcc4e6b@samsung.com> <20221003132943.1383065-1-daniel.lezcano@linaro.org> <1155a694-b821-d41a-da54-8a9656d90e50@samsung.com> From: Daniel Lezcano In-Reply-To: <1155a694-b821-d41a-da54-8a9656d90e50@samsung.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/10/2022 15:48, Marek Szyprowski wrote: > Hi Daniel, > > On 03.10.2022 15:29, Daniel Lezcano wrote: >> The driver is assuming the get_critical temperature exists as it is >> inherited by the thermal of ops. But this one has been removed in >> favor of the generic one. >> >> Use the generic thermal_zone_get_crit_temp() function instead >> >> Fixes: 13bea86623b ("thermal/of: Remove of_thermal_get_crit_temp(") >> Reported-by: Marek Szyprowski >> Signed-off-by: Daniel Lezcano > > This patch has been dropped from -next, is there are reason for that? No, my mistake. I dropped it accidentally when I rebased the branch. Thanks for pointing it out. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog