Missing field not being returned in ioctl CIFS_IOC_GET_MNT_INFO
authorSteve French <stfrench@microsoft.com>
Fri, 10 Nov 2023 07:24:16 +0000 (01:24 -0600)
committerSteve French <stfrench@microsoft.com>
Fri, 10 Nov 2023 15:32:04 +0000 (09:32 -0600)
The tcon_flags field was always being set to zero in the information
about the mount returned by the ioctl CIFS_IOC_GET_MNT_INFO instead
of being set to the value of the Flags field in the tree connection
structure as intended.

Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/ioctl.c

index 73ededa8eba5c706e838c7ecd305afaeccde927a..e2f92c21fff50205ea6f93bb25c5ee8965eda003 100644 (file)
@@ -143,6 +143,7 @@ static long smb_mnt_get_fsinfo(unsigned int xid, struct cifs_tcon *tcon,
 
        fsinf->version = 1;
        fsinf->protocol_id = tcon->ses->server->vals->protocol_id;
+       fsinf->tcon_flags = tcon->Flags;
        fsinf->device_characteristics =
                        le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics);
        fsinf->device_type = le32_to_cpu(tcon->fsDevInfo.DeviceType);