Re:Re: [PATCH] RDMA/srpt: fix NULL deref when sending BUSY before target_init_cmd()
From: kensanya
Date: Wed Jul 22 2026 - 21:57:23 EST
At 2026-07-23 02:10:13, "Bart Van Assche" <bvanassche@xxxxxxx> wrote:
>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.
I will send the v2 patch later.
Thanks,
TanZheng