]> Pileus Git - ~andy/linux/commit
forcedeth: Fix WARNINGS that result when DMA mapping is not checked
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 27 Dec 2012 17:25:41 +0000 (17:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Dec 2012 23:30:28 +0000 (15:30 -0800)
commit612a7c4e73f3306f3b599c60681194c1931a2dbc
treebe67f0bfa735a3fd7eab6e19a56b335c8935bc81
parent681726689052be0cd2f6287fd9878eba51883f48
forcedeth: Fix WARNINGS that result when DMA mapping is not checked

With 3.8-rc1, the first call of pci_map_single() that is not checked
with a corresponding pci_dma_mapping_error() call results in a warning
with a splat as follows:

WARNING: at lib/dma-debug.c:933 check_unmap+0x480/0x950()
Hardware name: HP Pavilion dv2700 Notebook PC
forcedeth 0000:00:0a.0: DMA-API: device driver failed to check
 map error[device address=0x00000000b176e002] [size=90 bytes] [mapped as single]

Reviewed-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/nvidia/forcedeth.c