b43legacy: fix DMA for 30/32-bit DMA engines
authorStefano Brivio <stefano.brivio@polimi.it>
Fri, 8 Feb 2008 05:31:53 +0000 (06:31 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Feb 2008 18:44:18 +0000 (13:44 -0500)
commit8e118f0ed866afab654a438b85643d4f1472f28b
tree562364b18b16c98a7809ebce7be6b0d20c32eaec
parentd68ab68066805fdfee1f5f29ec2ec0179fd92fe1
b43legacy: fix DMA for 30/32-bit DMA engines

This checks if the DMA address is bigger than what the controller can manage.
It will reallocate the buffers in the GFP_DMA zone in that case.

The patch by Michael Buesch has been ported to b43legacy.
Thanks to Matti Viljanen for reporting this.

Cc: Matti Viljanen <viljanen.matti@gmail.com>
Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43legacy/dma.c
drivers/net/wireless/b43legacy/dma.h