diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-04-04 08:16:21 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-05-05 05:18:06 +0200 |
commit | efb79f289f0a7e7fbfc82f78959093bf7d1558b9 (patch) | |
tree | 701e95a415f7524618784e605bbf59daacad296c /fs/cifs/dir.c | |
parent | cifs: store the real expected sequence number in the mid (diff) | |
download | linux-efb79f289f0a7e7fbfc82f78959093bf7d1558b9.tar.xz linux-efb79f289f0a7e7fbfc82f78959093bf7d1558b9.zip |
CIFS: fix error return code in cifs_atomic_open()
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r-- | fs/cifs/dir.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 46e455ece573..5699b5036ed8 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c @@ -457,8 +457,10 @@ cifs_atomic_open(struct inode *inode, struct dentry *direntry, inode, direntry->d_name.name, direntry); tlink = cifs_sb_tlink(CIFS_SB(inode->i_sb)); - if (IS_ERR(tlink)) + if (IS_ERR(tlink)) { + rc = PTR_ERR(tlink); goto out_free_xid; + } tcon = tlink_tcon(tlink); server = tcon->ses->server; |