mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
ipmi:ssif: Fix a memory leak when scanning for an adapter
[ Upstream commitb8d72e32e1] 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:c4436c9149("ipmi_ssif: avoid registering duplicate ssif interface") Signed-off-by: Corey Minyard <minyard@acm.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
2959a03cb7
commit
7db16d2e79
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue