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 2c3b96638..247bae08f 100644
--- a/fs/smbfs/file.c
+++ b/fs/smbfs/file.c
@@ -343,8 +343,10 @@ smb_file_open(struct inode *inode, struct file * file)
static int
smb_file_release(struct inode *inode, struct file * file)
{
+ lock_kernel();
if (!--inode->u.smbfs_i.openers)
smb_close(inode);
+ unlock_kernel();
return 0;
}