]> git.baikalelectronics.ru Git - kernel.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)
commit2c12e6b4045a5d0e09d20242fd2cf5ac0c67305d
treea398c9c221af33a0c7085a630a134224609f8a50
parent739845537c099a9c07deadca422ed5b2198b8bb3
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