Re: [PATCH] scsi: elx: efct: Fix IO leak on unsupported additional CDB

From: Daniel Wagner

Date: Mon Jun 22 2026 - 04:32:03 EST


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: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Haoxiang Li <haoxiang_li2024@xxxxxxx>

Looks good.

Reviewed-by: Daniel Wagner <dwagner@xxxxxxx>