patch-2.4.15 linux/drivers/usb/usb.c
Next file: linux/drivers/usb/usbnet.c
Previous file: linux/drivers/usb/usb-uhci.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed Nov 21 09:59:11 2001
- Orig file:
v2.4.14/linux/drivers/usb/usb.c
- Orig date:
Tue Oct 23 22:48:52 2001
diff -u --recursive --new-file v2.4.14/linux/drivers/usb/usb.c linux/drivers/usb/usb.c
@@ -1019,7 +1019,7 @@
/*-------------------------------------------------------------------*/
int usb_submit_urb(urb_t *urb)
{
- if (urb && urb->dev)
+ if (urb && urb->dev && urb->dev->bus && urb->dev->bus->op)
return urb->dev->bus->op->submit_urb(urb);
else
return -ENODEV;
@@ -1028,7 +1028,7 @@
/*-------------------------------------------------------------------*/
int usb_unlink_urb(urb_t *urb)
{
- if (urb && urb->dev)
+ if (urb && urb->dev && urb->dev->bus && urb->dev->bus->op)
return urb->dev->bus->op->unlink_urb(urb);
else
return -ENODEV;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)