[PATCH] firmware: arm_scmi: Fix late checks on pointer dereference
Sudeep Holla
sudeep.holla at arm.com
Wed May 4 02:50:49 PDT 2022
On Tue, 3 May 2022 13:10:47 +0100, Cristian Marussi wrote:
> A few dereferences could happen before the iterator pointer argument was
> checked for NULL, causing the following smatch warnings:
>
> drivers/firmware/arm_scmi/driver.c:1214 scmi_iterator_run() warn: variable
> dereferenced before check 'i' (see line 1210)
>
> Fix by moving the checks early and dropping some unneeded local references.
>
> [...]
Applied to sudeep.holla/linux (for-next/scmi), thanks!
[1/1] firmware: arm_scmi: Fix late checks on pointer dereference
https://git.kernel.org/sudeep.holla/c/c7f8852d42
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list