jme: Fix DMA unmap warning
authorNeil Horman <nhorman@tuxdriver.com>
Mon, 5 May 2014 18:51:47 +0000 (14:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 May 2014 19:54:14 +0000 (15:54 -0400)
commit76a691d0ab71a244f7582a5b0387728befbdb52f
tree242054eac68746967068475bb81a2ce890d6d9dd
parentd32aebfd64c8c8649b39cd6789b141525cc9d7c0
jme: Fix DMA unmap warning

The jme driver forgot to check the return status from pci_map_page in its tx
path, causing a dma api warning on unmap.  Easy fix, just do the check and
augment the tx path to tell the stack that the driver is busy so we re-queue the
frame.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: Guo-Fu Tseng <cooldavid@cooldavid.org>
CC: "David S. Miller" <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/jme.c