summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-05-31 09:11:11 -0700
committerAl Viro <viro@zeniv.linux.org.uk>2011-06-03 18:43:00 -0400
commit3ece48a746088be3dd75904e8d9bb9b49af0aa95 (patch)
treec32265a6f4897d7e7c006d74633ec7d6561ae8c6 /drivers
parent9e1f1de02c2275d7172e18dc4e7c2065777611bf (diff)
downloadlinux-stable-3ece48a746088be3dd75904e8d9bb9b49af0aa95.tar.gz
linux-stable-3ece48a746088be3dd75904e8d9bb9b49af0aa95.tar.bz2
linux-stable-3ece48a746088be3dd75904e8d9bb9b49af0aa95.zip
usb: remove bad dput after dentry_unhash
Commit 64252c75a 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: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Sage Weil <sage@newdream.net> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/core/inode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c
index 1b125c224dcf..2278dad886e2 100644
--- a/drivers/usb/core/inode.c
+++ b/drivers/usb/core/inode.c
@@ -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;
}