[PATCH 06/13] uas: fix reset_resume will a TMF is running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If we go into the reset_resume() code path, the device
cannot report on the result of a TMF. We must forget
about the request at the host level.

Signed-off-by: Oliver Neukum <oneukum@xxxxxxxx>
---
 drivers/usb/storage/uas.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c
index 4c1d6c3..590c3a7 100644
--- a/drivers/usb/storage/uas.c
+++ b/drivers/usb/storage/uas.c
@@ -1171,6 +1171,7 @@ static int uas_reset_resume(struct usb_interface *intf)
 		return -EIO;
 	}
 
+	complete(&devinfo->deathknell);
 	spin_lock_irqsave(shost->host_lock, flags);
 	scsi_report_bus_reset(shost, 0);
 	spin_unlock_irqrestore(shost->host_lock, flags);
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux