Commit e39df241 authored by Steve French's avatar Steve French

cifs: fix SMB1 error path in cifs_get_file_info_unix

We were trying to fill in uninitialized file attributes in the error case.

Addresses-Coverity: 139689 ("Uninitialized variables")
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent ff93b71a
...@@ -355,9 +355,12 @@ cifs_get_file_info_unix(struct file *filp) ...@@ -355,9 +355,12 @@ cifs_get_file_info_unix(struct file *filp)
} else if (rc == -EREMOTE) { } else if (rc == -EREMOTE) {
cifs_create_dfs_fattr(&fattr, inode->i_sb); cifs_create_dfs_fattr(&fattr, inode->i_sb);
rc = 0; rc = 0;
} } else
goto cifs_gfiunix_out;
rc = cifs_fattr_to_inode(inode, &fattr); rc = cifs_fattr_to_inode(inode, &fattr);
cifs_gfiunix_out:
free_xid(xid); free_xid(xid);
return rc; return rc;
} }
......
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