linux/drivers/usb/host
Pete Zaitcev 71795c1df3 USB: ohci_usb can oops on shutdown
When ohci-hcd is shutting down (for rmmod or PC-card removal), there is
a window when the device is shut down, HC communication area (->hcca)
is freed, but the core has not called "free_irq" yet. If another device
triggers a shared interrupt in this window, we oops when trying to
access the freed ->hcca.

This patch removes the window by calling free_irq before ->hcca is freed.

The patch is tested at the PC hotplug test rig at Stratus, and with
rmmod by Rafael Wysocki.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-09-27 11:59:00 -07:00
..
ehci-au1xxx.c USB: Properly unregister reboot notifier in case of failure in ehci hcd 2006-09-27 11:58:54 -07:00
ehci-dbg.c USB: fix __must_check warnings in drivers/usb/host/ 2006-09-27 11:58:58 -07:00
ehci-fsl.c USB: Properly unregister reboot notifier in case of failure in ehci hcd 2006-09-27 11:58:54 -07:00
ehci-fsl.h [PATCH] USB: EHCI for Freescale 83xx 2006-03-20 14:49:55 -08:00
ehci-hcd.c USB: EHCI whitespace fixes (cosmetic) 2006-09-27 11:58:56 -07:00
ehci-hub.c USB: EHCI whitespace fixes (cosmetic) 2006-09-27 11:58:56 -07:00
ehci-mem.c USB: EHCI whitespace fixes (cosmetic) 2006-09-27 11:58:56 -07:00
ehci-pci.c USB: Properly unregister reboot notifier in case of failure in ehci hcd 2006-09-27 11:58:54 -07:00
ehci-q.c USB: EHCI whitespace fixes (cosmetic) 2006-09-27 11:58:56 -07:00
ehci-sched.c USB: EHCI whitespace fixes (cosmetic) 2006-09-27 11:58:56 -07:00
ehci.h USB: EHCI whitespace fixes (cosmetic) 2006-09-27 11:58:56 -07:00
hc_crisv10.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
hc_crisv10.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
isp116x-hcd.c USB: Make file operations structs in drivers/usb const. 2006-09-27 11:58:52 -07:00
isp116x.h USB: Dealias -110 code (more complete) 2006-09-27 11:59:00 -07:00
Kconfig USB: u132-hcd: host controller driver for ELAN U132 adapter 2006-09-27 11:58:59 -07:00
Makefile USB: u132-hcd: host controller driver for ELAN U132 adapter 2006-09-27 11:58:59 -07:00
ohci-at91.c USB: ohci-at91, two one-liners 2006-09-27 11:58:57 -07:00
ohci-au1xxx.c USB: Properly unregister reboot notifier in case of failure in ehci hcd 2006-09-27 11:58:54 -07:00
ohci-dbg.c USB: fix __must_check warnings in drivers/usb/host/ 2006-09-27 11:58:58 -07:00
ohci-ep93xx.c USB: Properly unregister reboot notifier in case of failure in ehci hcd 2006-09-27 11:58:54 -07:00
ohci-hcd.c USB: ohci_usb can oops on shutdown 2006-09-27 11:59:00 -07:00
ohci-hub.c usbcore: remove usb_suspend_root_hub 2006-09-27 11:58:57 -07:00
ohci-lh7a404.c USB: Properly unregister reboot notifier in case of failure in ehci hcd 2006-09-27 11:58:54 -07:00
ohci-mem.c USB: Properly unregister reboot notifier in case of failure in ehci hcd 2006-09-27 11:58:54 -07:00
ohci-omap.c USB: Properly unregister reboot notifier in case of failure in ehci hcd 2006-09-27 11:58:54 -07:00
ohci-pci.c USB: Properly unregister reboot notifier in case of failure in ehci hcd 2006-09-27 11:58:54 -07:00
ohci-pnx4008.c USB OHCI controller support for PNX4008 2006-09-27 11:58:48 -07:00
ohci-ppc-soc.c USB: Properly unregister reboot notifier in case of failure in ehci hcd 2006-09-27 11:58:54 -07:00
ohci-pxa27x.c USB: Properly unregister reboot notifier in case of failure in ehci hcd 2006-09-27 11:58:54 -07:00
ohci-q.c [PATCH] USB: OHCI on Compaq Aramada 7400 2005-04-18 17:39:30 -07:00
ohci-s3c2410.c USB: Properly unregister reboot notifier in case of failure in ehci hcd 2006-09-27 11:58:54 -07:00
ohci-sa1111.c USB: OHCI avoids root hub timer polling 2006-09-27 11:58:48 -07:00
ohci.h USB: Dealias -110 code (more complete) 2006-09-27 11:59:00 -07:00
pci-quirks.c [PATCH] USB: Kill compiler warning in quirk_usb_handoff_ohci 2006-07-12 16:03:22 -07:00
pci-quirks.h [PATCH] USB: pci-quirks.c: proper prototypes 2006-04-14 11:12:20 -07:00
sl811-hcd.c USB: Dealias -110 code (more complete) 2006-09-27 11:59:00 -07:00
sl811.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sl811_cs.c [PATCH] USB: move hardware-specific <linux/usb_*.h> to <linux/usb/*.h> 2006-06-21 15:04:18 -07:00
u132-hcd.c USB: u132-hcd: host controller driver for ELAN U132 adapter 2006-09-27 11:58:59 -07:00
uhci-debug.c USB: Make file operations structs in drivers/usb const. 2006-09-27 11:58:52 -07:00
uhci-hcd.c [PATCH] Really ignore kmem_cache_destroy return value 2006-09-27 08:26:10 -07:00
uhci-hcd.h [PATCH] UHCI: Improve FSBR-off timing 2006-06-21 15:04:16 -07:00
uhci-hub.c UHCI: increase Resume-Detect-off delay 2006-09-27 11:58:54 -07:00
uhci-q.c uhci-hcd: fix list access bug 2006-08-31 18:04:30 -07:00