kernel: mayfix freeze and reboot issue.

* When ksys_umount/sys_umount/path_umount were called,
we shouldn't call path_put again.

References:
https://elixir.bootlin.com/linux/v4.19.325/source/fs/namespace.c#L1671
https://elixir.bootlin.com/linux/v5.15.185/source/fs/namespace.c#L1759

Reported-by: NVG-064 <aryslow92@gmail.com>
Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id>
This commit is contained in:
rsuntk
2025-06-12 16:47:31 +07:00
committed by ShirkNeko
parent f709b0c232
commit ff328ed65a

View File

@@ -1042,7 +1042,6 @@ static void ksu_try_umount(const char *mnt, bool check_mnt, int flags)
#else #else
ksu_sys_umount(mnt, flags); ksu_sys_umount(mnt, flags);
#endif #endif
path_put(&path);
} }
#ifdef CONFIG_KSU_SUSFS_TRY_UMOUNT #ifdef CONFIG_KSU_SUSFS_TRY_UMOUNT