Re: [PATCH] RDMA/srpt: fix NULL deref when sending BUSY before target_init_cmd()
Bart Van Assche <[email protected]> Wed, 22 Jul 2026 11:10:13 -0700
| Newsgroups | org.kernel.vger.target-devel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-rdma |
|---|---|
| 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.