# git rev-parse -q --verify 8f4ab7da904ab7027ccd43ddb4f0094e932a5877^{commit} 8f4ab7da904ab7027ccd43ddb4f0094e932a5877 already have revision, skipping fetch # git checkout -q -f -B kisskb 8f4ab7da904ab7027ccd43ddb4f0094e932a5877 # git clean -qxdf # < git log -1 # commit 8f4ab7da904ab7027ccd43ddb4f0094e932a5877 # Author: Miaoqian Lin # Date: Mon Dec 5 12:44:27 2022 +0400 # # 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 # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20221205084429.570654-1-linmq006@gmail.com # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 8f4ab7da904ab7027ccd43ddb4f0094e932a5877 # < make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-next_ep88xc_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ep88xc_defconfig # < make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-next_ep88xc_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-next_ep88xc_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-next_ep88xc_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/fs/coredump.c:834:12: warning: 'dump_emit_page' defined but not used [-Wunused-function] static int dump_emit_page(struct coredump_params *cprm, struct page *page) ^ Completed OK # rm -rf /kisskb/build/powerpc-next_ep88xc_defconfig_powerpc-gcc5 # Build took: 0:00:42.587982