linux/tools/testing/selftests/efivarfs
zhujun2 87215fbda3 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>
History 2023-11-28 17:19:42 +00:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
config selftests/efivarfs: add required kernel configs 2018-09-05 10:58:07 -06:00
create-read.c selftests/efivarfs: create-read: fix a resource leak 2023-11-28 17:19:42 +00:00
efivarfs.sh selftests/efivarfs: Add checking of the test return value 2022-11-22 09:09:04 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
open-unlink.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00