diff mbox

[linux-cifs-client] cifs: return more accurate errno

Message ID 20100507082744.GR27064@bicker (mailing list archive)
State New, archived
Headers show

Commit Message

Dan Carpenter May 7, 2010, 8:27 a.m. UTC
None
diff mbox

Patch

diff --git a/fs/cifs/cifs_dfs_ref.c b/fs/cifs/cifs_dfs_ref.c
index 78e4d2a..fa1f74a 100644
--- a/fs/cifs/cifs_dfs_ref.c
+++ b/fs/cifs/cifs_dfs_ref.c
@@ -345,6 +345,8 @@  cifs_dfs_follow_mountpoint(struct dentry *dentry, struct nameidata *nd)
 	rc = get_dfs_path(xid, ses , full_path + 1, cifs_sb->local_nls,
 		&num_referrals, &referrals,
 		cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR);
+	if (rc < 0)
+		goto out_err;
 
 	for (i = 0; i < num_referrals; i++) {
 		int len;