Re: [PATCH] usb: image: microtek: stop SG processing after transfer errors
From: Oliver Neukum
Date: Tue Jul 28 2026 - 04:56:50 EST
On 23.07.26 21:56, Diego Fernando Mancera Gomez wrote:
When an SG URB completes with an error, mts_do_sg() callsAcked-by: Oliver Neukum <oneukum@xxxxxxxx>
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 <diegomancera.dev@xxxxxxxxx>