summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorMiaoqian Lin <linmq006@gmail.com>2022-12-05 12:44:27 +0400
committerMichael Ellerman <mpe@ellerman.id.au>2022-12-05 21:39:15 +1100
commit8f4ab7da904ab7027ccd43ddb4f0094e932a5877 (patch)
tree6fd0a79c9aedce9474b9f29d934290618a7cef3f /drivers/misc
parent6f3a81b60091031c2c14eb2373d1937b027deb46 (diff)
downloadlinux-stable-8f4ab7da904ab7027ccd43ddb4f0094e932a5877.tar.gz
linux-stable-8f4ab7da904ab7027ccd43ddb4f0094e932a5877.tar.bz2
linux-stable-8f4ab7da904ab7027ccd43ddb4f0094e932a5877.zip
selftests/powerpc: Fix resource leaks
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
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions