]> git.dujemihanovic.xyz Git - u-boot.git/commit
firmware: smci: possible NULL dereference
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 1 Feb 2021 02:01:54 +0000 (03:01 +0100)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 10:38:41 +0000 (03:38 -0700)
commit6f5edbaf938952e4a9860727c633dcaa36caf699
treedaaf7db3ddddf0ff1504821691459ec254f6ad27
parentc30a7093e81be0dbec963b6b347f678630c2eb8d
firmware: smci: possible NULL dereference

sandbox_scmi_devices_ctx() may return NULL. We should not dereference this
value in sandbox_scmi_devices_remove().

The problem was indicated by 'gcc-11 -fanalyzer'.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/firmware/scmi/sandbox-scmi_devices.c