Re: [PATCH] usb: image: microtek: stop SG processing after transfer errors
Oliver Neukum <[email protected]>
| Newsgroups | org.kernel.vger.linux-usb,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On 23.07.26 21:56, Diego Fernando Mancera Gomez wrote:
> When an SG URB completes with an error, mts_do_sg() calls
> mts_transfer_cleanup(), which completes the SCSI command through
> scsi_done(). However, the callback continues advancing the scatterlist
> and may submit another URB for a command that has already been
> completed.
>
> Return immediately after the cleanup so that no further processing is
> performed on the completed command.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Signed-off-by: Diego Fernando Mancera Gomez <[email protected]>
Acked-by: Oliver Neukum <[email protected]>