]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf735f24de5da58edc0b1fbca8e321afe31e066d3
tree562364b18b16c98a7809ebce7be6b0d20c32eaec
parentd0d0430d0261b3b5c5f4f04abc4a4fe681c94bb2
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