Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de677f43 authored by Corey Minyard's avatar Corey Minyard Committed by Greg Kroah-Hartman
Browse files

ipmi:ssif: Fix a memory leak when scanning for an adapter



[ Upstream commit b8d72e32e1453d37ee5c8a219f24e7eeadc471ef ]

The adapter scan ssif_info_find() sets info->adapter_name if the adapter
info came from SMBIOS, as it's not set in that case.  However, this
function can be called more than once, and it will leak the adapter name
if it had already been set.  So check for NULL before setting it.

Fixes: c4436c91 ("ipmi_ssif: avoid registering duplicate ssif interface")
Signed-off-by: default avatarCorey Minyard <minyard@acm.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ef0d2869
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment