]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/cifs/smb2ops.c
smb3: fill in statfs fsid and correct namelen
[linux.git] / fs / cifs / smb2ops.c
index ea92a38b2f08c34f2afd942d5fa933098f04cc07..09506d918ecb8656fa746f6563870084f5b1b1a4 100644 (file)
@@ -548,6 +548,8 @@ smb3_qfs_tcon(const unsigned int xid, struct cifs_tcon *tcon)
                        FS_ATTRIBUTE_INFORMATION);
        SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
                        FS_DEVICE_INFORMATION);
+       SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
+                       FS_VOLUME_INFORMATION);
        SMB2_QFS_attr(xid, tcon, fid.persistent_fid, fid.volatile_fid,
                        FS_SECTOR_SIZE_INFORMATION); /* SMB3 specific */
        if (no_cached_open)
@@ -1700,7 +1702,7 @@ smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon,
                       &resp_buftype);
        if (!rc || !err_iov.iov_base) {
                rc = -ENOENT;
-               goto querty_exit;
+               goto free_path;
        }
 
        err_buf = err_iov.iov_base;
@@ -1741,6 +1743,7 @@ smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon,
 
  querty_exit:
        free_rsp_buf(resp_buftype, err_buf);
+ free_path:
        kfree(utf16_path);
        return rc;
 }