[PATCH] ide: fix PCI modules oops
commit9c8b55a99e9e9ecfb98d674adabfe2c375cf3c61
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>
Fri, 25 Jul 2003 07:46:30 +0000 (25 00:46 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 25 Jul 2003 07:46:30 +0000 (25 00:46 -0700)
tree18fd12bbdc7de7be4aa423bde164762b2da67e41
parentccdba6ab4689b9bad6d44d7227526f40fb107fdf
[PATCH] ide: fix PCI modules oops

Forward-port of 2.4.21-ac4 patch by Wilfried Weissmann.

ide_get_or_set_dma_base() may be called via ide_setup_pci_device()
when a PCI controller module is loaded.  However, it is defined with __init
and the function is called when its memory is already deallocated.
drivers/ide/setup-pci.c