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:
@@ -1042,7 +1042,6 @@ static void ksu_try_umount(const char *mnt, bool check_mnt, int flags)
|
||||
#else
|
||||
ksu_sys_umount(mnt, flags);
|
||||
#endif
|
||||
path_put(&path);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_KSU_SUSFS_TRY_UMOUNT
|
||||
|
||||
Reference in New Issue
Block a user