Skip to content
Commit dfb9676e authored by 蒋家盛's avatar 蒋家盛 Committed by Greg Kroah-Hartman
Browse files

soc: aspeed: socinfo: Add kfree for kstrdup



[ Upstream commit 6e6d847a ]

Add kfree() in the later error handling in order to avoid memory leak.

Fixes: e0218dca ("soc: aspeed: Add soc info driver")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20230707021625.7727-1-jiasheng@iscas.ac.cn


Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20230810123104.231167-1-joel@jms.id.au


Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c5ac7522
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment