kernel: fix incorrect dput
This commit is contained in:
@@ -366,7 +366,6 @@ static void try_umount(const char *mnt) {
|
|||||||
|
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
|
||||||
err = path_umount(&path, 0);
|
err = path_umount(&path, 0);
|
||||||
dput(path.dentry);
|
|
||||||
if (err) {
|
if (err) {
|
||||||
pr_info("umount %s failed: %d\n", mnt, err);
|
pr_info("umount %s failed: %d\n", mnt, err);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user