]> git.baikalelectronics.ru Git - kernel.git/commit
tulip: Properly check dma mapping result
authorNeil Horman <nhorman@tuxdriver.com>
Thu, 13 Jun 2013 19:31:28 +0000 (15:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jun 2013 00:09:40 +0000 (17:09 -0700)
commitd3261a036665145509e26981c70eb268950cd494
tree684e440cc058731ebd4bb0186f19621459f2fdde
parenteca9bf28be13f77b555b826c56320ce4f48b5cd4
tulip: Properly check dma mapping result

Tulip throws an error when dma debugging is enabled, as it doesn't properly
check dma mapping results with dma_mapping_error() durring tx ring refills.

Easy fix, just add it in, and drop the frame if the mapping is bad

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: Grant Grundler <grundler@parisc-linux.org>
CC: "David S. Miller" <davem@davemloft.net>
Reviewed-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dec/tulip/interrupt.c