Skip to contentSkip to conversation

UASP: Set iface data before scanning host

PATCH In review Luben Tuikov 1 participant 1 message Dec 8, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/4 UASP: Set iface data before scanning host

---
 drivers/usb/storage/uasp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/storage/uasp.c +1 -1
index 1d2b2e3..3b10efd 100644
@@ -1059,8 +1059,8 @@ static int uasp_probe(struct usb_interface *iface,
 		goto Free;
 
 	shost->hostdata[0] = (unsigned long)tpinfo;
-	scsi_scan_host(shost);
 	usb_set_intfdata(iface, shost);
+	scsi_scan_host(shost);
 
 	return res;
  Free:
Signature · 1 line
1.7.0.1