X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fusb%2Fcore%2Fusb.c;h=de2edfb08582eebf24b8cc94f7e975a693c9e01a;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=324e16cafdf3d4788de45ae01610847a377d7317;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 324e16caf..de2edfb08 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c @@ -93,6 +93,8 @@ int usb_probe_interface(struct device *dev) if (!driver->probe) return error; + if (interface_to_usbdev(intf)->state == USB_STATE_SUSPENDED) + return -EHOSTUNREACH; id = usb_match_id (intf, driver->id_table); if (id) {