# 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-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-11.1.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_corenet32_smp_defconfig_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- corenet32_smp_defconfig # < make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-next_corenet32_smp_defconfig_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-next_corenet32_smp_defconfig_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-next_corenet32_smp_defconfig_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c: In function 'dpaa_eth_show_addr': /kisskb/src/drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c:21:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 21 | (unsigned long long)mac_dev->vaddr); | ^ Completed OK # rm -rf /kisskb/build/powerpc-next_corenet32_smp_defconfig_powerpc-gcc11 # Build took: 0:02:32.133329