From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Mon, 1 Feb 2021 13:44:45 -0700 Subject: [PATCH 1/1] firmware: smci: possible NULL dereference In-Reply-To: <20210201020154.67751-1-xypron.glpk@gmx.de> References: <20210201020154.67751-1-xypron.glpk@gmx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, 31 Jan 2021 at 19:02, Heinrich Schuchardt wrote: > > 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 > --- > drivers/firmware/scmi/sandbox-scmi_devices.c | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Simon Glass