Commit b229c11
ksmbd: fix error code overwriting in smb2_get_info_filesystem()
commit 88daf2f upstream.
If client doesn't negotiate with SMB3.1.1 POSIX Extensions,
then proper error code won't be returned due to overwriting.
Return error immediately.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: e2f3448 ("cifsd: add server-side procedures for SMB3")
Cc: stable@vger.kernel.org
Signed-off-by: Matvey Kovalev <matvey.kovalev@ispras.ru>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 6bd7e0e commit b229c11
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5628 | 5628 | | |
5629 | 5629 | | |
5630 | 5630 | | |
5631 | | - | |
| 5631 | + | |
| 5632 | + | |
5632 | 5633 | | |
5633 | 5634 | | |
5634 | 5635 | | |
| |||
0 commit comments