aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
rl'>
authorMiaoqian Lin <linmq006@gmail.com>2022-12-05 12:44:27 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-18 11:41:30 +0100
commit2b7ad4357438ed055e87822cfc0069c33476c589 (patch)
treee52590d1a5eaf476763e660ced387da5ae0c7383 /tools
parent39633b4051eeb1dc7ad01e0d90e156b3ac3a23a4 (diff)
downloadlinux-2b7ad4357438ed055e87822cfc0069c33476c589.tar.gz
selftests/powerpc: Fix resource leaks
[ Upstream commit 8f4ab7da904ab7027ccd43ddb4f0094e932a5877 ] In check_all_cpu_dscr_defaults, opendir() opens the directory stream. Add missing closedir() in the error path to release it. In check_cpu_dscr_default, open() creates an open file descriptor. Add missing close() in the error path to release it. Fixes: ebd5858c904b ("selftests/powerpc: Add test for all DSCR sysfs interfaces") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20221205084429.570654-1-linmq006@gmail.com Signed-off-by: Sasha Levin <sashal@kernel.org>