Commit 334d2c27 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

usbdevfs:

	- put back locks that I accidentally took out with the last merge.
parent 007cdf40
......@@ -184,6 +184,7 @@ static struct inode *usbfs_get_inode (struct super_block *sb, int mode, int dev)
return inode;
}
/* SMP-safe */
static int usbfs_mknod (struct inode *dir, struct dentry *dentry, int mode,
int dev)
{
......@@ -238,7 +239,9 @@ static int usbfs_unlink (struct inode *dir, struct dentry *dentry)
if (usbfs_empty(dentry)) {
struct inode *inode = dentry->d_inode;
lock_kernel();
inode->i_nlink--;
unlock_kernel();
dput(dentry);
error = 0;
}
......
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