Unverified Commit 2e95e7ba authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!11758 smb/client: avoid dereferencing rdata=NULL in smb2_new_read_req()

parents 940464a3 5d8fbb5f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4431,7 +4431,7 @@ smb2_new_read_req(void **buf, unsigned int *total_len,
	 * If we want to do a RDMA write, fill in and append
	 * smbd_buffer_descriptor_v1 to the end of read request
	 */
	if (smb3_use_rdma_offload(io_parms)) {
	if (rdata && smb3_use_rdma_offload(io_parms)) {
		struct smbd_buffer_descriptor_v1 *v1;
		bool need_invalidate = server->dialect == SMB30_PROT_ID;