diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 2d7bf0fb..5af2e73e 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -591,6 +591,7 @@ static void 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; } @@ -604,6 +605,7 @@ static void try_umount(const char *mnt, bool check_mnt, int flags) #else ksu_sys_umount(mnt, flags); #endif + path_put(&path); } int ksu_handle_setuid(struct cred *new, const struct cred *old)