diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 269c18c5..d06d1dba 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -1021,6 +1021,7 @@ static void ksu_try_umount(const char *mnt, bool check_mnt, int flags) if (path.dentry != path.mnt->mnt_root) { // it is not root mountpoint, maybe umounted by others already. + path_put(&path); return; } @@ -1040,6 +1041,7 @@ 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