]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Clean up error handling of PCI queue DMA allocation.
authorIvo van Doorn <ivdoorn@gmail.com>
Mon, 5 May 2008 15:24:03 +0000 (17:24 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 13 May 2008 01:22:18 +0000 (21:22 -0400)
commitb4f161e9a047c2b280de1a23c626b043e33c8977
treec326c5611e501011cdf1193b6c78ca18e3cfe79b
parent34b0a2114499a367508909bd659a06537f386aa7
rt2x00: Clean up error handling of PCI queue DMA allocation.

When, for some reason, the rt2x00pci module fails to allocate DMA memory for
the queues, it tries to undo the complete initialization of the PCI device,
including freeing of the irq. This results in the following error in dmesg, as
the irq hadn't been requested yet:

[  78.123456] Trying to free already-free IRQ 17

Fix this by implementing proper error handling code, instead of just using the
full uninitialization function.

Signed-off-by: Gertjan van Wingerde <gwingerde@kpnplanet.nl>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00pci.c