]> git.karo-electronics.de Git - karo-tx-linux.git/commit
skge: add dma_mapping check
authorstephen hemminger <stephen@networkplumber.org>
Mon, 5 Aug 2013 00:22:34 +0000 (17:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Aug 2013 01:35:01 +0000 (18:35 -0700)
commit136d8f377e1575463b47840bc5f1b22d94bf8f63
treea398c9c221af33a0c7085a630a134224609f8a50
parent72a67a94bcba71a5fddd6b3596a20604d2b5dcd6
skge: add dma_mapping check

This old driver never checked for DMA mapping errors.
Causing splats with the new DMA mapping checks:
WARNING: at lib/dma-debug.c:937 check_unmap+0x47b/0x930()
skge 0000:01:09.0: DMA-API: device driver failed to check map

Add checks and unwind code.

Reported-by: poma <pomidorabelisima@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/skge.c