]> git.ipfire.org Git - thirdparty/linux.git/commit
smb: client: fix conflicting option validation for new mount API
authorHenrique Carvalho <henrique.carvalho@suse.com>
Wed, 27 May 2026 12:26:42 +0000 (09:26 -0300)
committerSteve French <stfrench@microsoft.com>
Sun, 14 Jun 2026 20:12:23 +0000 (15:12 -0500)
commit10ce03879f935f756bc8a386b3fa3a1c7264d950
treefc148f7be9ce401b8e6ff6eb56898b71b2a6996e
parentf71d68d2b473e47db260c27c98212829590d8bae
smb: client: fix conflicting option validation for new mount API

Apply conflicting option validation consistently across all the new
mount API paths, for both mount and remount.

Some checks were only applied during initial mount validation, while
others were handled during option parsing, causing mount and
remount/reconfigure to behave differently.

Move the conflicting option checks into smb3_handle_conflicting_options()
and call it from the common validation paths, including for
multichannel/max_channels handling.

Fixes: 24e0a1eff9e2 ("cifs: switch to new mount api")
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/fs_context.c