# 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-12.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-12.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 8f4ab7da904ab7027ccd43ddb4f0094e932a5877 # < make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_powerpc-allnoconfig_powerpc-gcc12 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-12.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- allnoconfig # < make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_powerpc-allnoconfig_powerpc-gcc12 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-12.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_powerpc-allnoconfig_powerpc-gcc12 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-12.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_powerpc-allnoconfig_powerpc-gcc12 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-12.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- Completed OK # rm -rf /kisskb/build/powerpc-next_powerpc-allnoconfig_powerpc-gcc12 # Build took: 0:00:24.698617