The quilt patch titled Subject: tools/testing/selftests/vm/ksm_tests.c: fix resource leak when return error has been removed from the -mm tree. Its filename was selftests-vm-fix-resource-leak-when-return-error.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Ding Xiang <dingxiang@xxxxxxxxxxxxxxxxxxxx> Subject: tools/testing/selftests/vm/ksm_tests.c: fix resource leak when return error Date: Wed, 15 Jun 2022 17:36:29 +0800 When return on an error path, file handle need to be closed to prevent resource leak Link: https://lkml.kernel.org/r/20220615093629.1330809-1-dingxiang@xxxxxxxxxxxxxxxxxxxx Signed-off-by: Ding Xiang <dingxiang@xxxxxxxxxxxxxxxxxxxx> Reviewed-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- tools/testing/selftests/vm/ksm_tests.c | 2 ++ 1 file changed, 2 insertions(+) --- a/tools/testing/selftests/vm/ksm_tests.c~selftests-vm-fix-resource-leak-when-return-error +++ a/tools/testing/selftests/vm/ksm_tests.c @@ -54,6 +54,7 @@ static int ksm_write_sysfs(const char *f } if (fprintf(f, "%lu", val) < 0) { perror("fprintf"); + fclose(f); return 1; } fclose(f); @@ -72,6 +73,7 @@ static int ksm_read_sysfs(const char *fi } if (fscanf(f, "%lu", val) != 1) { perror("fscanf"); + fclose(f); return 1; } fclose(f); _ Patches currently in -mm which might be from dingxiang@xxxxxxxxxxxxxxxxxxxx are