Re: [2.5.66] slab corruption

From: Andrew Morton (akpm@digeo.com)
Date: Wed Mar 26 2003 - 16:30:21 EST


Jochen Hein <jochen@jochen.org> wrote:
>
>
> This is when shutting down. I have the two patches from Jack Simmons
> for the illegal context and the broken cursor applied and nothing
> else.
>
> uhci-hcd 00:07.2: remove, state 3
> usb usb1: USB disconnect, address 1

There's some nastiness in the USB disconnect code. Does David Brownell's
patch help?

--- 1.15/drivers/usb/core/urb.c Thu Mar 13 10:45:40 2003
+++ edited/drivers/usb/core/urb.c Thu Mar 20 11:17:55 2003
@@ -384,11 +384,11 @@
         /* FIXME
          * We should not care about the state here, but the host controllers
          * die a horrible death if we unlink a urb for a device that has been
- * physically removed.
+ * physically removed. (after driver->disconnect returns...)
          */
         if (urb &&
             urb->dev &&
- (urb->dev->state >= USB_STATE_DEFAULT) &&
+ // (urb->dev->state >= USB_STATE_DEFAULT) &&
             urb->dev->bus &&
             urb->dev->bus->op)
                 return urb->dev->bus->op->unlink_urb(urb);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:26 EST