]> www.infradead.org Git - users/jedix/linux-maple.git/commit
smb311 client: fix missing tcon check when mounting with linux/posix extensions
authorSteve French <stfrench@microsoft.com>
Sun, 6 Apr 2025 19:09:19 +0000 (14:09 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 7 Apr 2025 06:08:07 +0000 (01:08 -0500)
commitb365b9d404b7376c60c91cd079218bfef11b7822
tree0b9fce04b3b57d77c8059ba8a9dab7bde378ebc8
parent6f8a394aa952257575910d57cf0a63627fa949a2
smb311 client: fix missing tcon check when mounting with linux/posix extensions

When mounting the same share twice, once with the "linux" mount parameter
(or equivalently "posix") and then once without (or e.g. with "nolinux"),
we were incorrectly reusing the same tree connection for both mounts.
This meant that the first mount of the share on the client, would
cause subsequent mounts of that same share on the same client to
ignore that mount parm ("linux" vs. "nolinux") and incorrectly reuse
the same tcon.

Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c