Ubuntu-focal-kernel/tools/testing/selftests
zhujun2 f2e0ba7692 selftests/efivarfs: create-read: fix a resource leak
BugLink: https://bugs.launchpad.net/bugs/2049069

[ Upstream commit 3f6f8a8c5e11a9b384a36df4f40f0c9a653b6975 ]

The opened file should be closed in main(), otherwise resource
leak will occur that this problem was discovered by code reading

Signed-off-by: zhujun2 <zhujun2@cmss.chinamobile.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
2024-02-02 14:13:07 +01:00
..
android
arm64
bpf selftests/bpf: check that modifier resolves after pointer 2023-07-10 17:22:03 +02:00
breakpoints
capabilities
cgroup selftests: cgroup: Test open-time cgroup namespace usage for migration checks 2022-05-20 15:20:06 +02:00
cpu-hotplug
cpufreq
drivers selftests: mlxsw: vxlan_flooding: Prevent flooding of unwanted packets 2022-06-22 14:50:48 +02:00
efivarfs selftests/efivarfs: create-read: fix a resource leak 2024-02-02 14:13:07 +01:00
exec
filesystems
firmware
ftrace selftests/ftrace: Add new test case which checks non unique symbol 2024-02-02 14:12:58 +01:00
futex selftests/futex: fix build for clang 2023-02-01 15:21:05 +01:00
gpio selftests/gpio: Fix build when source tree is read only 2021-06-18 15:02:42 +02:00
ia64
intel_pstate selftests/intel_pstate: fix build for ARCH=x86_64 2023-02-01 15:21:05 +01:00
ipc
ir
kcmp
kexec
kmod
kselftest tweewide: Fix most Shebang lines 2021-06-18 15:02:27 +02:00
kvm KVM: VMX: Fix the spelling of CPU_BASED_USE_TSC_OFFSETTING 2023-02-01 15:23:36 +01:00
lib
livepatch
locking
media_tests
membarrier
memfd selftests/memfd: Fix unknown type name build failure 2023-08-09 12:25:34 +02:00
memory-hotplug selftests: memory-hotplug: avoid spamming logs with dump_page(), ratio limit hot-remove error test 2021-09-20 18:50:14 +02:00
mount
mqueue testing/selftests/mqueue: Fix mq_perf_tests to free the allocated cpu set 2022-06-22 14:50:32 +02:00
net selftests: tls: swap the TX and RX sockets in some tests 2024-01-05 14:29:47 +01:00
netfilter selftests: nft_nat: ensuring the listening side is up before starting the client 2023-07-10 17:21:40 +02:00
networking/timestamping
nsfs
ntb
pidfd
powerpc selftests: Skip TM tests on synthetic TM implementations 2024-01-05 14:30:00 +01:00
prctl
proc proc: fixup uptime selftest 2023-02-01 15:22:13 +01:00
pstore
ptp selftests/ptp: Fix timestamp printf format for PTP_SYS_OFFSET 2023-09-01 14:48:46 +02:00
ptrace
rcutorture
rseq selftests/rseq: Fix build with undefined __weak 2023-10-30 11:41:53 +01:00
rtc selftests: rtc: Increase test timeout so that all tests run 2022-04-14 11:32:14 +02:00
safesetid
seccomp UBUNTU: SAUCE: selftests/seccomp: Fix s390x regs not defined issue 2022-01-13 18:43:10 +01:00
sigaltstack selftests: sigaltstack: fix -Wuninitialized 2023-08-09 12:25:11 +02:00
size
sparc64
splice
static_keys
sync
sysctl
tc-testing selftests: tc: set timeout to 15 minutes 2023-10-02 12:12:14 +02:00
timers UBUNTU: SAUCE: selftest: rtcpie: Force passing unreliable subtest 2023-02-24 14:01:18 +01:00
tmpfs
tpm2
uevent
user
vDSO
vm kselftest/vm: fix tests build with old libc 2022-05-20 15:17:57 +02:00
watchdog
x86 selftests/x86: Add validity check and allow field splitting 2022-05-20 15:18:32 +02:00
zram selftests/zram: Adapt the situation that /dev/zram0 is being used 2022-04-14 11:32:15 +02:00
.gitignore
Makefile selftests: set the BUILD variable to absolute path 2023-02-01 15:23:43 +01:00
gen_kselftest_tar.sh
kselftest.h
kselftest_harness.h
kselftest_install.sh
kselftest_module.h
kselftest_module.sh
lib.mk selftests: Use optional USERCFLAGS and USERLDFLAGS 2023-02-01 15:23:24 +01:00