summaryrefslogtreecommitdiffstats
path: root/arch/loongarch
diff options
context:
space:
mode:
authorZheng Yongjun <zhengyongjun3@huawei.com>2022-11-17 06:20:11 +0000
committerShawn Guo <shawnguo@kernel.org>2022-11-19 09:40:36 +0800
commitf31e3c204d1844b8680a442a48868af5ac3d5481 (patch)
treecde20244b51621a0fae65ad75153b42eafb1afb3 /arch/loongarch
parent836fb30949d9edf91d7de696a884ceeae7e426d2 (diff)
downloadlinux-f31e3c204d1844b8680a442a48868af5ac3d5481.tar.bz2
ARM: mxs: fix memory leak in mxs_machine_init()
If of_property_read_string() failed, 'soc_dev_attr' should be freed before return. Otherwise there is a memory leak. Fixes: 2046338dcbc6 ("ARM: mxs: Use soc bus infrastructure") Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com> Reviewed-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/loongarch')
0 files changed, 0 insertions, 0 deletions