Commit 1d4a4bde authored by Sage Weil's avatar Sage Weil Committed by Greg Kroah-Hartman

usb: remove bad dput after dentry_unhash

Commit 64252c75 (vfs: remove dget() from dentry_unhash()) removed the
useless dget from dentry_unhash but didn't fix up this caller in the usb
code.  There used to be exactly one dput per dentry_unhash call; now
there are none.
Tested-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarSage Weil <sage@newdream.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3824c1dd
......@@ -389,7 +389,6 @@ static int usbfs_rmdir(struct inode *dir, struct dentry *dentry)
mutex_unlock(&inode->i_mutex);
if (!error)
d_delete(dentry);
dput(dentry);
return error;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment