diff mbox series

[SMB3,client] flags field not being set in

Message ID CAH2r5mub4h5XpqBy=RTDuMAEByBtP441FX0G3W6hGVvS79Lfqw@mail.gmail.com
State New
Headers show
Series [SMB3,client] flags field not being set in | expand

Commit Message

Steve French Nov. 10, 2023, 7:30 a.m. UTC
A very small fix ...

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.
diff mbox series

Patch

From a99a12867600231f12c8bd1dad182c40855476b6 Mon Sep 17 00:00:00 2001
From: Steve French <stfrench@microsoft.com>
Date: Fri, 10 Nov 2023 01:24:16 -0600
Subject: [PATCH] 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 ioctls CIFS_IOC_GET_MNT_INFO instead
of being set to the value of the Flags field in the tree connection
structure as intended.

Signed-off-by: Steve French <stfrench@microsoft.com>
---
 fs/smb/client/ioctl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/smb/client/ioctl.c b/fs/smb/client/ioctl.c
index 73ededa8eba5..e2f92c21fff5 100644
--- a/fs/smb/client/ioctl.c
+++ b/fs/smb/client/ioctl.c
@@ -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);
-- 
2.39.2