Commit 88daf2f
ksmbd: fix error code overwriting in smb2_get_info_filesystem()
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>1 parent c20988c commit 88daf2f
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5629 | 5629 | | |
5630 | 5630 | | |
5631 | 5631 | | |
5632 | | - | |
| 5632 | + | |
| 5633 | + | |
5633 | 5634 | | |
5634 | 5635 | | |
5635 | 5636 | | |
| |||
0 commit comments