Skip to content

Commit 784e0e2

Browse files
author
Steve French
committed
Missing field not being returned in ioctl CIFS_IOC_GET_MNT_INFO
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 <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent de4ecea commit 784e0e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/smb/client/ioctl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ static long smb_mnt_get_fsinfo(unsigned int xid, struct cifs_tcon *tcon,
143143

144144
fsinf->version = 1;
145145
fsinf->protocol_id = tcon->ses->server->vals->protocol_id;
146+
fsinf->tcon_flags = tcon->Flags;
146147
fsinf->device_characteristics =
147148
le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics);
148149
fsinf->device_type = le32_to_cpu(tcon->fsDevInfo.DeviceType);

0 commit comments

Comments
 (0)