ChangeSet 1.995, 2003/02/04 12:04:38+11:00, [EMAIL PROTECTED]
[PATCH] USB usb-storage: host a host refcount a little bit longer
This patch makes us hold the host reference count a little bit longer in
the /proc interface code. We were releasing it too early before.
diff -Nru a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c
--- a/drivers/usb/storage/scsiglue.c Tue Feb 4 15:15:59 2003
+++ b/drivers/usb/storage/scsiglue.c Tue Feb 4 15:15:59 2003
@@ -290,7 +290,6 @@
return -ESRCH;
}
us = (struct us_data*)hostptr->hostdata[0];
- scsi_host_put(hostptr);
/* if we couldn't find it, we return an error */
if (!us) {
@@ -308,6 +307,9 @@
/* show the protocol and transport */
SPRINTF(" Protocol: %s\n", us->protocol_name);
SPRINTF(" Transport: %s\n", us->transport_name);
+
+ /* release the reference count on this host */
+ scsi_host_put(hostptr);
/*
* Calculate start of next buffer, and return value.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel