linux-stable/tools/testing
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
..
fault-injection License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ktest ktest.pl: Fix missing "end_monitor" when machine check fails 2023-03-11 16:26:48 +01:00
nvdimm mm, devm_memremap_pages: mark devm_memremap_pages() EXPORT_SYMBOL_GPL 2019-01-13 10:01:02 +01:00
radix-tree radix tree test suite: fix incorrect allocation size for pthreads 2023-08-16 18:10:53 +02:00
selftests selftests/efivarfs: create-read: fix a resource leak 2023-11-28 16:45:43 +00:00