ksmbd: fix wrong allocation size update in smb2_open()
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 4 Dec 2023 13:23:34 +0000 (22:23 +0900)
committerSteve French <stfrench@microsoft.com>
Fri, 8 Dec 2023 16:11:33 +0000 (10:11 -0600)
commita9f106c765c12d2f58aa33431bd8ce8e9d8a404a
tree80741f0a76715951642335d7b7957db3c92c3d51
parent658609d9a618d8881bf549b5893c0ba8fcff4526
ksmbd: fix wrong allocation size update in smb2_open()

When client send SMB2_CREATE_ALLOCATION_SIZE create context, ksmbd update
old size to ->AllocationSize in smb2 create response. ksmbd_vfs_getattr()
should be called after it to get updated stat result.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c