Re: [PATCH] smb: client: avoid NULL resp_iov dereference

From: Namjae Jeon

Date: Sat Sep 26 2026 - 22:23:47 EST


> @@ -1111,7 +1111,7 @@ compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
> /*
> * Compounding is never used during session establish.
> */
> - if (num_processed == num_rqst) {
> + if (num_processed == num_rqst && resp_iov) {
Could you please explain how this code path can be reached? Earlier in
the function, if ses->ses_status == SES_NEW or optype contains
CIFS_NEG_OP or CIFS_SESS_OP, the code checks !resp_iov and returns
-EINVAL.