Ubuntu-focal-kernel/tools/testing
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
..
fault-injection
ktest ktest.pl: Add RUN_TIMEOUT option with default unlimited 2023-05-12 17:15:11 +02:00
nvdimm
radix-tree radix tree test suite: fix incorrect allocation size for pthreads 2023-10-30 11:41:52 +01:00
scatterlist
selftests selftests/efivarfs: create-read: fix a resource leak 2024-02-02 14:13:07 +01:00
vsock