From 9d5c501970f1a359ceb5124eccdb97f5a72e9397 Mon Sep 17 00:00:00 2001 From: Wang Han <416810799@qq.com> Date: Wed, 6 Aug 2025 23:37:00 +0800 Subject: [PATCH] Avoid declaration after goto label --- kernel/core_hook.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/core_hook.c b/kernel/core_hook.c index e76262b4..45603607 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -617,8 +617,7 @@ do_umount: // check old process's selinux context, if it is not zygote, ignore it! // because some su apps may setuid to untrusted_app but they are in global mount namespace // when we umount for such process, that is a disaster! - bool is_zygote_child = is_zygote(old->security); - if (!is_zygote_child) { + if (!is_zygote(old->security)) { pr_info("handle umount ignore non zygote child: %d\n", current->pid); return 0;