summaryrefslogtreecommitdiffstats
path: root/fs/smbfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/smbfs/file.c')
-rw-r--r--fs/smbfs/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/smbfs/file.c b/fs/smbfs/file.c
index cbabee222..2c3b96638 100644
--- a/fs/smbfs/file.c
+++ b/fs/smbfs/file.c
@@ -334,7 +334,9 @@ out:
static int
smb_file_open(struct inode *inode, struct file * file)
{
+ lock_kernel();
inode->u.smbfs_i.openers++;
+ unlock_kernel();
return 0;
}