diff options
Diffstat (limited to 'drivers/usb/storage/scsiglue.c')
-rw-r--r-- | drivers/usb/storage/scsiglue.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c index e227f64d5641..1ba19eaa1970 100644 --- a/drivers/usb/storage/scsiglue.c +++ b/drivers/usb/storage/scsiglue.c | |||
@@ -321,10 +321,14 @@ void usb_stor_report_device_reset(struct us_data *us) | |||
321 | 321 | ||
322 | /* Report a driver-initiated bus reset to the SCSI layer. | 322 | /* Report a driver-initiated bus reset to the SCSI layer. |
323 | * Calling this for a SCSI-initiated reset is unnecessary but harmless. | 323 | * Calling this for a SCSI-initiated reset is unnecessary but harmless. |
324 | * The caller must own the SCSI host lock. */ | 324 | * The caller must not own the SCSI host lock. */ |
325 | void usb_stor_report_bus_reset(struct us_data *us) | 325 | void usb_stor_report_bus_reset(struct us_data *us) |
326 | { | 326 | { |
327 | scsi_report_bus_reset(us_to_host(us), 0); | 327 | struct Scsi_Host *host = us_to_host(us); |
328 | |||
329 | scsi_lock(host); | ||
330 | scsi_report_bus_reset(host, 0); | ||
331 | scsi_unlock(host); | ||
328 | } | 332 | } |
329 | 333 | ||
330 | /*********************************************************************** | 334 | /*********************************************************************** |