ksmbd: contain default data stream even if xattr is empty
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 21 Nov 2021 02:32:39 +0000 (11:32 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Dec 2021 08:04:43 +0000 (09:04 +0100)
commit522cd5c6554a0bb56dae7baa2c6155970de4be1d
tree955d3dc8af222fbd34107278d64902ce16fa5475
parentb05576526e84e50718f24409086d0d51f3d3371c
ksmbd: contain default data stream even if xattr is empty

commit 1ec72153ff434ce75bace3044dc89a23a05d7064 upstream.

If xattr is not supported like exfat or fat, ksmbd server doesn't
contain default data stream in FILE_STREAM_INFORMATION response. It will
cause ppt or doc file update issue if local filesystem is such as ones.
This patch move goto statement to contain it.

Fixes: 9f6323311c70 ("ksmbd: add default data stream name in FILE_STREAM_INFORMATION")
Cc: stable@vger.kernel.org # v5.15
Acked-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/smb2pdu.c