]> git.baikalelectronics.ru Git - uboot.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)
commitde2ece59a49db7463614a52260c4b98b8b9d9cc3
treedaaf7db3ddddf0ff1504821691459ec254f6ad27
parentbe589373823e1d4ede8a1201b6703fa8ee69372f
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