b43legacy: Fix possible NULL pointer dereference in DMA code
authorMichael Buesch <mb@bu3sch.de>
Thu, 3 Jul 2008 02:45:47 +0000 (02:45 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Jul 2008 16:14:04 +0000 (09:14 -0700)
commit79ec0fb601c989adf6180a13a74fb761ce90e522
tree65267794f031ae5eed19c72cf33daa2ee13c8d7d
parentd9fa0e1e5ba2b33448f9398fd0b129388e09a591
b43legacy: Fix possible NULL pointer dereference in DMA code

commit 2f9ec47d0954f9d2e5a00209c2689cbc477a8c89 upstream

This fixes a possible NULL pointer dereference in an error path of the
DMA allocation error checking code. This is also necessary for a future
DMA API change that is on its way into the mainline kernel that adds
an additional dev parameter to dma_mapping_error().

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/b43legacy/dma.c