[lkml]   [2002]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [linux-usb-devel] [PATCHlet] 2.5.23 usb, ide
    From: David Brownell <>

> Earlier, I reported an oops at shutdown. I just looked at
> what causes the oops and find that the call
> hcd->driver->stop()
> is executed while hcd->driver->stop is NULL.
> ...
> USB people may worry whether hcd->driver->stop should
> have been non-NULL.

Not supposed to be possible. All those hc_driver structures
are declared "static const", with non-null stop(). Looks like
something was zeroing some driver's readonly data segment while
it was still in use. (And who knows that else!)

Now wild pointers happen, and it took me some effort a few
weeks ago to catch one. But at first one should look at
simpler explanations.

Now that you tell me that these things are set at initialization
and never changed, the initialization must be wrong. And indeed,
it says "__devexit_p(uhci_stop)" and this yields NULL.

So, my previous stopoops patch can be replaced by

diff -r linux-2.5.23/linux/drivers/usb/host/uhci-hcd.c linux-2.5.23a/linux/drivers/usb/host/uhci-hcd.c
< static void __devexit uhci_stop(struct usb_hcd *hcd)
> static void uhci_stop(struct usb_hcd *hcd)
< stop: __devexit_p(uhci_stop),
> stop: uhci_stop,

(pasted from another window).

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:26    [W:0.075 / U:1.940 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site