Re: [PATCH] RDMA/srpt: fix NULL deref when sending BUSY before target_init_cmd()

Bart Van Assche <[email protected]>
Newsgroups org.kernel.vger.linux-rdma,org.kernel.vger.linux-kernel,org.kernel.vger.target-devel
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.