diff options
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | 2023-08-10 22:01:04 +0930 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-23 17:52:38 +0200 |
commit | b662856b71343d9e731c1cd4bbe54758c7791abb (patch) | |
tree | 97f34a7c294e366e96b5db2130a728b58c4a6614 /security | |
parent | 15db1e594e2c44fbe1508e92d966df584258f6c4 (diff) | |
download | linux-b662856b71343d9e731c1cd4bbe54758c7791abb.tar.gz |
soc: aspeed: socinfo: Add kfree for kstrdup
[ Upstream commit 6e6d847a8ce18ab2fbec4f579f682486a82d2c6b ] Add kfree() in the later error handling in order to avoid memory leak. Fixes: e0218dca5787 ("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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions