diff options
| -rw-r--r-- | drivers/usb/storage/uas.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c index 8f4222640bd6..fcab9b79d9fb 100644 --- a/drivers/usb/storage/uas.c +++ b/drivers/usb/storage/uas.c | |||
| @@ -1096,16 +1096,17 @@ static int uas_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
| 1096 | if (result) | 1096 | if (result) |
| 1097 | goto free_streams; | 1097 | goto free_streams; |
| 1098 | 1098 | ||
| 1099 | usb_set_intfdata(intf, shost); | ||
| 1099 | result = scsi_add_host(shost, &intf->dev); | 1100 | result = scsi_add_host(shost, &intf->dev); |
| 1100 | if (result) | 1101 | if (result) |
| 1101 | goto free_streams; | 1102 | goto free_streams; |
| 1102 | 1103 | ||
| 1103 | scsi_scan_host(shost); | 1104 | scsi_scan_host(shost); |
| 1104 | usb_set_intfdata(intf, shost); | ||
| 1105 | return result; | 1105 | return result; |
| 1106 | 1106 | ||
| 1107 | free_streams: | 1107 | free_streams: |
| 1108 | uas_free_streams(devinfo); | 1108 | uas_free_streams(devinfo); |
| 1109 | usb_set_intfdata(intf, NULL); | ||
| 1109 | set_alt0: | 1110 | set_alt0: |
| 1110 | usb_set_interface(udev, intf->altsetting[0].desc.bInterfaceNumber, 0); | 1111 | usb_set_interface(udev, intf->altsetting[0].desc.bInterfaceNumber, 0); |
| 1111 | if (shost) | 1112 | if (shost) |
