Avoid declaration after goto label

This commit is contained in:
Wang Han
2025-08-06 23:37:00 +08:00
committed by GitHub
parent 031f41e6be
commit 9d5c501970

View File

@@ -617,8 +617,7 @@ do_umount:
// check old process's selinux context, if it is not zygote, ignore it! // 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 // 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! // when we umount for such process, that is a disaster!
bool is_zygote_child = is_zygote(old->security); if (!is_zygote(old->security)) {
if (!is_zygote_child) {
pr_info("handle umount ignore non zygote child: %d\n", pr_info("handle umount ignore non zygote child: %d\n",
current->pid); current->pid);
return 0; return 0;