iwlegacy: check for dma mapping errors
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 30 Jan 2013 16:08:03 +0000 (17:08 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 1 Feb 2013 19:27:22 +0000 (14:27 -0500)
commit96ebbe8d019ab50b34fc3499398ab98de8c2d01b
treed8f3e0c8d555183a85b7560bdfec1d659722f842
parent58b27101e16f2a24e901dd9e67c2ab6e5707d6a3
iwlegacy: check for dma mapping errors

Handle pci_map_page() errors. This fixes "DMA-API: device driver failed
to check map error" warning.

Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/3945-mac.c
drivers/net/wireless/iwlegacy/4965-mac.c