Re: [PATCH] RDMA/srpt: fix NULL deref when sending BUSY before target_init_cmd()
From: Bart Van Assche
Date: Wed Jul 22 2026 - 14:10:25 EST
On 7/21/26 6:52 PM, kensanya wrote:
How about the following plan?
- If target_init_cmd() fails:
release the send ioctx locally via target_free_tag(ch->sess, cmd)
and do not call target_send_busy()
- If target_init_cmd() succeeds but a later step fails
(e.g. srpt_get_desc_tbl()):
keep using target_send_busy(cmd)
That sounds good to me.
Thanks,
Bart.