Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp627703lqp; Thu, 21 Mar 2024 10:35:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3Nm1XP99tWNQUzgEzR9Lt3I+rWPmVlyBpASPkjzlEfTJXxrHTOA1hYQ4+8fYLhqr9TULMdL7cTUiOAtpY0BGeW19gkExJ12WZBIWSpA== X-Google-Smtp-Source: AGHT+IFWU7FsFZ5ttNnA2RO2AOd4vs5MebkQ2SbuDwuWilKcXk0eQpisOL2piBjIK4TKS0NqNEfX X-Received: by 2002:a05:6a20:3d27:b0:1a3:5d08:4152 with SMTP id y39-20020a056a203d2700b001a35d084152mr255222pzi.19.1711042541742; Thu, 21 Mar 2024 10:35:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711042541; cv=pass; d=google.com; s=arc-20160816; b=zaR6Sp9Oxvxnd9xouFJ3ErBMFjwAdJmuJ8fpcTFKyLIUqYnjRcvE2+Zz43Gj7av0Ap 3jGfVU4iwp+eKy3LcuAyemsPsdDBQd3oKduFi0tfKFK5gxogSgO23UVR/WkcGrMIWa7t +mSK2QkL+U7MmOnTz5jDsDqccB/y9u0Uba9n2Rwx98ZcQFEfFktWnMkpZSp2RfR0KCcQ +X7xCQoP6dO8GrW/J34ZyUlcPd8yp8YmribIXERYIAhaohuxk7UOFWX8jt7pLnGujxXO tCRHay+cbnT/h506us3p9UxbD8ujdJEeqiTK8f+YQEjyB50yZTYeLqbSBIiDgbuSYbHW 89yw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=WjLTQlvuPOBaz+D+LjUilodmD16xs/15SSgaRqgavvw=; fh=IolsFvERzomVdHQmVWPfSzYT7eA/hq4YOp8WbcNy3QM=; b=GM458n7TGgSHWs/wJ9t5oUfp7rJ+pCdAptvpFrfSsQHLPUQIVI5eZCosxeo6gbcx3v bEYeX+hVvj1+bS0TYi88ozCmF8dwQm+O/0lFE0Ydsd5/lnxrFEt596IKo7NyalT+dAyC m36euStAL4t7EFo+I9IyV4gwdqdn4Qh+W/u6tySLk1BHLBzuG1QWfU0/ndMfgA3AmcI/ Rn2B9BnOlX12euGpEkHVBLkwsk/Hy+l6eRzCuGZ7BdQO1M54ybnP3Btty/TzUukDrB7l hGybVZnvWzFhVwOEG78Q/OQT838I3JtbbSJvm1H0X0HShpStC/QFbQOSI96hFkkv+eoO KZpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iwyjuyp+; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-110472-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110472-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m17-20020a656a11000000b005e42fc7a15asi189228pgu.348.2024.03.21.10.35.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 10:35:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110472-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iwyjuyp+; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-110472-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110472-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B0D32B21221 for ; Thu, 21 Mar 2024 17:14:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0539212CD8C; Thu, 21 Mar 2024 17:14:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iwyjuyp+" Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 41F5B1755F for ; Thu, 21 Mar 2024 17:13:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711041241; cv=none; b=KJ28Khmcy4sSldTt53cY7osDVPBjZWCFfzJ1NPJh6j4Yflo2dIc86hsjJTldVixHgbvUloTsNIQp2gnbFT1JfxvM7d1RfG0pZfYQKzkq2iw7mvwtmbonZ9YzCz+fXlqUYVf1hzM/IQncZa2VybgRd0MkUAdgPbbcCeujmWqwSkM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711041241; c=relaxed/simple; bh=Gy9dSISYC3+iioEVBCt5B4Eh35ZBRiWCProDJ1p0Lbc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rxMjrciIS/w0ekVPjlgK+/zs87b3DAOXXLyMebM2rBVyI5CrBDi2f5fDgu64z7ZzCIlMZb7JcH0/9Uyq20Y3apQ6BtzMRKY2/oJmKaHeM+T5PZLZ6WMeNuTwpw40k/qiHXsApJxPzjQ4C1k1DsHFkWUQSpRgjvAqgsT2+Y7wwUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=iwyjuyp+; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-41478162b64so2004915e9.3 for ; Thu, 21 Mar 2024 10:13:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711041237; x=1711646037; darn=vger.kernel.org; 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=WjLTQlvuPOBaz+D+LjUilodmD16xs/15SSgaRqgavvw=; b=iwyjuyp+hhAo4htDuUkMsPGWE/+o39uZTbnjWObUfd0FlsI9fYoeIG+jem5DUe/qS6 ftI5Rrtr428hrAB2Dq1TKofkWRDYJ2I5/702rpwWm83eE95SHmlYVpc4XWgdQaXxgtb6 nZI0g/lxPR08n5qugI/y+MbL7HJ/Un7BzI9DQB/PLGR0Y2t71h5WbAuglosQQz9E2Wsh lelkTiX2ryva85eObm3U7K1oWZ/7WO6V4jxDIZJqPHibSXrjeYgXhG7Prbp9d6JZm5A5 0INKfKrntr6NC3dJL9PjlZIQ6vlr15TgsQGq11RFSfsHxec4qiWos9MAANt6UNNZLcwU WORg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711041237; x=1711646037; 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=WjLTQlvuPOBaz+D+LjUilodmD16xs/15SSgaRqgavvw=; b=txItkphWcx+YJEdubLMVkQN3MvzW+6mhfUPx75v2InZ+d1Obtd863eGOzvNwLjRdke p3HPQIHQjg2CjDy/iwQtTPEe0EOzs2An/UMFVl2ljawiQTV+NULBZrMcer5/k5OQu48J azKitmQ0/5oCTjaAQc5zbRQcl1Vjc6jGTi9RCY2C2/sXsGDri5d/fRHa2sutRFSlmNXI t7rzk19uXjtjF72Jmt21v2GB5bSelpCBOha8lnlWC5JDwNsip7PXoQfEIbF9E0I2cZOT fj7P6Y1T1ZbibZKEAt3geLdLzkqlrRrTJouspyNvHm4s9oJKK1/nqFdsEXXriJBCm3A0 OK5A== X-Forwarded-Encrypted: i=1; AJvYcCW8Lh+hrpEhYirgraojuzSJuslSiBC1cWayVq1bNzRSBYRNrixIa0Iqx9Le+eADnvtYr92FqvRnMSa5mftth9/QhkqnVr/CJnBOhQGP X-Gm-Message-State: AOJu0YycCirXIOqUjwtQDIj3LOyEqzJEl1zGTJ2QF/xVMZ5jdGkV3/4n lSMNi3AkLuK9DbSAIDuCxIHHxwWIiUIfB9EK2xGDKFY6BOinNONLMQwWWoik3M4= X-Received: by 2002:a05:600c:3c8c:b0:414:6211:14a0 with SMTP id bg12-20020a05600c3c8c00b00414621114a0mr7243975wmb.2.1711041237531; Thu, 21 Mar 2024 10:13:57 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id v9-20020a05600c470900b0041409db0349sm333276wmo.48.2024.03.21.10.13.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Mar 2024 10:13:57 -0700 (PDT) Message-ID: Date: Thu, 21 Mar 2024 18:13:56 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/3] thermal: qcom: lmh: Check for SCM availability at probe Content-Language: en-US To: Konrad Dybcio , Bjorn Andersson , "Rafael J. Wysocki" , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thara Gopinath , Amit Kucheria Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov , stable@vger.kernel.org References: <20240308-topic-rb1_lmh-v2-0-bac3914b0fe3@linaro.org> <20240308-topic-rb1_lmh-v2-2-bac3914b0fe3@linaro.org> From: Daniel Lezcano In-Reply-To: <20240308-topic-rb1_lmh-v2-2-bac3914b0fe3@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 09/03/2024 14:15, Konrad Dybcio wrote: > Up until now, the necessary scm availability check has not been > performed, leading to possible null pointer dereferences (which did > happen for me on RB1). > > Fix that. > > Fixes: 53bca371cdf7 ("thermal/drivers/qcom: Add support for LMh driver") > Cc: > Reviewed-by: Dmitry Baryshkov > Signed-off-by: Konrad Dybcio > --- Applied, thanks -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog