[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240911-tzmem-null-ptr-v2-0-7c61b1a1b463@linaro.org>
Date: Wed, 11 Sep 2024 11:07:02 +0200
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konradybcio@...nel.org>,
Andrew Halaney <ahalaney@...hat.com>,
Elliot Berman <quic_eberman@...cinc.com>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
Rudraksha Gupta <guptarud@...il.com>,
"Linux regression tracking (Thorsten Leemhuis)" <regressions@...mhuis.info>
Cc: linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: [PATCH v2 0/2] firmware: qcom: scm: fix SMC calls on ARM32
The new TZ Mem allocator assumes the SCM driver is always probed which
apparently isn't the case on older platforms. Add a proper workaround.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
---
Changes in v2:
- use likely() for the more likely branch in smc_args_free()
- Link to v1: https://lore.kernel.org/r/20240909-tzmem-null-ptr-v1-0-96526c421bac@linaro.org
---
Bartosz Golaszewski (2):
firmware: qcom: scm: fix a NULL-pointer dereference
firmware: qcom: scm: fall back to kcalloc() for no SCM device bound
drivers/firmware/qcom/qcom_scm-smc.c | 28 ++++++++++++++++++++++++----
drivers/firmware/qcom/qcom_scm.c | 2 +-
2 files changed, 25 insertions(+), 5 deletions(-)
---
base-commit: 6708132e80a2ced620bde9b9c36e426183544a23
change-id: 20240909-tzmem-null-ptr-2a9ddd9889aa
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Powered by blists - more mailing lists