patch-2.4.21 linux-2.4.21/drivers/usb/hub.c
Next file: linux-2.4.21/drivers/usb/ibmcam.c
Previous file: linux-2.4.21/drivers/usb/hpusbscsi.h
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
2003-06-13 07:51:36.000000000 -0700
- Orig file:
linux-2.4.20/drivers/usb/hub.c
- Orig date:
2002-11-28 15:53:14.000000000 -0800
diff -urN linux-2.4.20/drivers/usb/hub.c linux-2.4.21/drivers/usb/hub.c
@@ -1057,8 +1057,10 @@
}
ret = usb_get_descriptor(dev, USB_DT_DEVICE, 0, descriptor,
sizeof(*descriptor));
- if (ret < 0)
+ if (ret < 0) {
+ kfree(descriptor);
return ret;
+ }
le16_to_cpus(&descriptor->bcdUSB);
le16_to_cpus(&descriptor->idVendor);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)