Re: [PATCH] scsi: elx: efct: Fix IO leak on unsupported additional CDB
Daniel Wagner <[email protected]> Mon, 22 Jun 2026 10:31:07 +0200
| Newsgroups | org.kernel.vger.target-devel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-scsi,org.kernel.vger.stable |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jun 22, 2026 at 03:58:44PM +0800, Haoxiang Li wrote:
> efct_dispatch_fcp_cmd() allocates an efct_io before dispatching an
> unsolicited FCP command. If the command has an unsupported additional
> CDB, the function returns -EIO before handing the IO to the SCSI layer.
>
> Free the allocated IO before returning from this error path.
>
> Fixes: f45ae6aac0a0 ("scsi: elx: efct: Unsolicited FC frame processing routines")
> Cc: [email protected]
> Signed-off-by: Haoxiang Li <[email protected]>
Looks good.
Reviewed-by: Daniel Wagner <[email protected]>