Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41311
b: refs/heads/master
c: a3b1f50
h: refs/heads/master
i:
  41309: 78385bb
  41307: 2257d60
  41303: 62b77e9
  41295: d7b9e6e
  41279: 47d8420
v: v3
  • Loading branch information
Mariusz Kozlowski authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent d5bef70 commit 3d76698
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 49314378ac9b76c40f221e3e5aed866e912e7e99
refs/heads/master: a3b1f50ce2fdc73c7e60e04c0a2235af74deac2b
8 changes: 5 additions & 3 deletions trunk/drivers/usb/image/microtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ static int mts_usb_probe(struct usb_interface *intf,

new_desc->context.scsi_status = kmalloc(1, GFP_KERNEL);
if (!new_desc->context.scsi_status)
goto out_kfree2;
goto out_free_urb;

new_desc->usb_dev = dev;
new_desc->usb_intf = intf;
Expand All @@ -822,18 +822,20 @@ static int mts_usb_probe(struct usb_interface *intf,
new_desc->host = scsi_host_alloc(&mts_scsi_host_template,
sizeof(new_desc));
if (!new_desc->host)
goto out_free_urb;
goto out_kfree2;

new_desc->host->hostdata[0] = (unsigned long)new_desc;
if (scsi_add_host(new_desc->host, NULL)) {
err_retval = -EIO;
goto out_free_urb;
goto out_host_put;
}
scsi_scan_host(new_desc->host);

usb_set_intfdata(intf, new_desc);
return 0;

out_host_put:
scsi_host_put(new_desc->host);
out_kfree2:
kfree(new_desc->context.scsi_status);
out_free_urb:
Expand Down

0 comments on commit 3d76698

Please sign in to comment.