kernel: fix incorrect dput

This commit is contained in:
tiann
2023-04-03 19:22:05 +08:00
parent ec4a233e04
commit 62bbee56db

View File

@@ -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);
} }