summaryrefslogtreecommitdiff
path: root/fs/smb/server/smb2misc.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-09-29 16:51:38 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2023-09-29 16:51:38 -0700
commit9f3ebbef746f89f860a90ced99a359202ea86fde (patch)
treee34a3cdc86cc657b1f424c8b427ed35551dbce08 /fs/smb/server/smb2misc.c
parent14c06b913d4a11b50351ef5bcb3f112247f647f3 (diff)
parent73f949ea87c7d697210653501ca21efe57295327 (diff)
downloadlinux-9f3ebbef746f89f860a90ced99a359202ea86fde.tar.gz
linux-9f3ebbef746f89f860a90ced99a359202ea86fde.tar.bz2
linux-9f3ebbef746f89f860a90ced99a359202ea86fde.zip
Merge tag '6.6-rc3-ksmbd-server-fixes' of git://git.samba.org/ksmbd
Pull smb server fixes from Steve French: "Two SMB3 server fixes for null pointer dereferences: - invalid SMB3 request case (fixes issue found in testing the read compound patch) - iovec error case in response processing" * tag '6.6-rc3-ksmbd-server-fixes' of git://git.samba.org/ksmbd: ksmbd: check iov vector index in ksmbd_conn_write() ksmbd: return invalid parameter error response if smb2 request is invalid
Diffstat (limited to 'fs/smb/server/smb2misc.c')
-rw-r--r--fs/smb/server/smb2misc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/smb/server/smb2misc.c b/fs/smb/server/smb2misc.c
index e881df1d10cb..23bd3d1209df 100644
--- a/fs/smb/server/smb2misc.c
+++ b/fs/smb/server/smb2misc.c
@@ -440,10 +440,8 @@ int ksmbd_smb2_check_message(struct ksmbd_work *work)
validate_credit:
if ((work->conn->vals->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU) &&
- smb2_validate_credit_charge(work->conn, hdr)) {
- work->conn->ops->set_rsp_status(work, STATUS_INVALID_PARAMETER);
+ smb2_validate_credit_charge(work->conn, hdr))
return 1;
- }
return 0;
}