]> www.infradead.org Git - users/dwmw2/linux.git/commit
smb/client: avoid dereferencing rdata=NULL in smb2_new_read_req()
authorStefan Metzmacher <metze@samba.org>
Wed, 21 Aug 2024 15:18:23 +0000 (17:18 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 25 Aug 2024 14:06:25 +0000 (09:06 -0500)
commitc724b2ab6a46435b4e7d58ad2fbbdb7a318823cf
tree229fced11ed4cc7afea73cb9ada951e11419ca35
parent5be63fc19fcaa4c236b307420483578a56986a37
smb/client: avoid dereferencing rdata=NULL in smb2_new_read_req()

This happens when called from SMB2_read() while using rdma
and reaching the rdma_readwrite_threshold.

Cc: stable@vger.kernel.org
Fixes: a6559cc1d35d ("cifs: split out smb3_use_rdma_offload() helper")
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2pdu.c