Commit c805134e authored by Tvrtko A. Ursulin's avatar Tvrtko A. Ursulin Committed by Linus Torvalds

[PATCH] smb_file_open() retval fix

Correctly propagate the return value from smb_open(). 
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 17b3fed1
...@@ -363,7 +363,7 @@ smb_file_open(struct inode *inode, struct file * file) ...@@ -363,7 +363,7 @@ smb_file_open(struct inode *inode, struct file * file)
SMB_I(inode)->openers++; SMB_I(inode)->openers++;
out: out:
unlock_kernel(); unlock_kernel();
return 0; return result;
} }
static int static int
......
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