Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174886
b: refs/heads/master
c: 00fa43e
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Wilcox authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 4ea924f commit 6eb0060
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 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: b1f0a34ca983a6defb0431aa18c9268eb9ffcc4a
refs/heads/master: 00fa43ef09c6bb357d58c14a99181cce09c315c6
3 changes: 2 additions & 1 deletion trunk/drivers/usb/storage/scsiglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@

static const char* host_info(struct Scsi_Host *host)
{
return "SCSI emulation for USB Mass Storage devices";
struct us_data *us = host_to_us(host);
return us->scsi_name;
}

static int slave_alloc (struct scsi_device *sdev)
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/usb/storage/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,8 @@ int usb_stor_probe2(struct us_data *us)
result = usb_stor_acquire_resources(us);
if (result)
goto BadDevice;
snprintf(us->scsi_name, sizeof(us->scsi_name), "usb-storage %s",
dev_name(&us->pusb_intf->dev));
result = scsi_add_host(us_to_host(us), &us->pusb_intf->dev);
if (result) {
printk(KERN_WARNING USB_STORAGE
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/usb/storage/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ struct us_data {
/* SCSI interfaces */
struct scsi_cmnd *srb; /* current srb */
unsigned int tag; /* current dCBWTag */
char scsi_name[32]; /* scsi_host name */

/* control and bulk communications data */
struct urb *current_urb; /* USB requests */
Expand Down

0 comments on commit 6eb0060

Please sign in to comment.