* Patchlet for drivers/usb/hub.c
@ 2001-02-28 0:26 Peter Zaitcev
0 siblings, 0 replies; only message in thread
From: Peter Zaitcev @ 2001-02-28 0:26 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel
--- linux-2.4.2-ac5/drivers/usb/hub.c Tue Feb 27 15:52:05 2001
+++ linux-2.4.2-ac5-p3/drivers/usb/hub.c Tue Feb 27 16:21:32 2001
@@ -150,14 +150,14 @@
unsigned int pipe;
int i, maxp, ret;
- hub->descriptor = kmalloc(sizeof(hub->descriptor), GFP_KERNEL);
+ hub->descriptor = kmalloc(sizeof(*hub->descriptor), GFP_KERNEL);
if (!hub->descriptor) {
- err("Unable to kmalloc %d bytes for hub descriptor", sizeof(hub->descriptor));
+ err("Unable to kmalloc %d bytes for hub descriptor", sizeof(*hub->descriptor));
return -1;
}
/* Request the entire hub descriptor. */
- ret = usb_get_hub_descriptor(dev, hub->descriptor, sizeof(hub->descriptor));
+ ret = usb_get_hub_descriptor(dev, hub->descriptor, sizeof(*hub->descriptor));
/* <hub->descriptor> is large enough for a hub with 127 ports;
* the hub can/will return fewer bytes here. */
if (ret < 0) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-02-28 0:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-28 0:26 Patchlet for drivers/usb/hub.c Peter Zaitcev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).