linux-stable/tools
zhujun2 cb990db348 selftests/efivarfs: create-read: fix a resource leak
[ Upstream commit 3f6f8a8c5e ]

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>
2023-11-28 16:45:43 +00:00
..
accounting tools/accounting/getdelays.c: fix netlink attribute length 2020-04-13 10:34:33 +02:00
arch parisc: Align parisc MADV_XXX constants with all other architectures 2023-01-18 09:26:42 +01:00
build tools build: Switch to new openssl API for test-libcrypto 2022-08-25 11:11:33 +02:00
cgroup tools: fix cross-compile var clobbering 2019-01-13 10:01:02 +01:00
firewire
gpio tools: gpio-hammer: Avoid potential overflow in main 2020-10-01 13:12:39 +02:00
hv Tools: hv: kvp: eliminate 'may be used uninitialized' warning 2019-09-10 10:32:17 +01:00
iio tools/iio/iio_utils:fix memory leak 2023-03-11 16:26:54 +01:00
include perf tools: Correct SNOOPX field offset 2020-09-09 19:03:09 +02:00
kvm/kvm_stat tweewide: Fix most Shebang lines 2021-06-03 08:36:11 +02:00
laptop tools: fix cross-compile var clobbering 2019-01-13 10:01:02 +01:00
leds tools: fix cross-compile var clobbering 2019-01-13 10:01:02 +01:00
lib libtraceevent: Fix build with binutils 2.35 2023-01-18 09:26:04 +01:00
net bpf: fix uninitialized variable in bpf tools 2018-06-21 04:02:49 +09:00
nfsd
objtool objtool: Add a missing comma to avoid string concatenation 2023-02-06 07:46:33 +01:00
pci tools: PCI: Fix broken pcitest compilation 2019-11-24 08:23:34 +01:00
pcmcia
perf perf test uprobe_from_different_cu: Skip if there is no gcc 2023-08-11 11:33:54 +02:00
power cpupower: add Makefile dependencies for install targets 2023-10-10 21:43:41 +02:00
scripts tools: Let O= makes handle a relative path with -C option 2020-04-02 16:34:30 +02:00
spi tools: fix cross-compile var clobbering 2019-01-13 10:01:02 +01:00
testing selftests/efivarfs: create-read: fix a resource leak 2023-11-28 16:45:43 +00:00
thermal/tmon tools/thermal: Fix possible path truncations 2022-08-25 11:11:27 +02:00
time
usb usb: testusb: Fix for showing the connection speed 2021-10-09 14:09:46 +02:00
virtio tools/virtio: fix the vringh test for virtio ring changes 2023-02-22 12:46:05 +01:00
vm tools/vm/slabinfo-gnuplot: use "grep -E" instead of "egrep" 2022-12-08 11:16:32 +01:00
Makefile