WSL2-Linux-Kernel/drivers/soc/aspeed
Jiasheng Jiang dfb9676ed2 soc: aspeed: socinfo: Add kfree for kstrdup
[ Upstream commit 6e6d847a8c ]

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

Fixes: e0218dca57 ("soc: aspeed: Add soc info driver")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20230707021625.7727-1-jiasheng@iscas.ac.cn
Signed-off-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20230810123104.231167-1-joel@jms.id.au
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-26 14:23:36 +02:00
..
Kconfig
Makefile
aspeed-lpc-ctrl.c
aspeed-lpc-snoop.c
aspeed-p2a-ctrl.c
aspeed-socinfo.c soc: aspeed: socinfo: Add kfree for kstrdup 2023-08-26 14:23:36 +02:00