r8169: check dma mapping failures
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 20 Oct 2010 22:25:36 +0000 (22:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Oct 2010 08:32:44 +0000 (01:32 -0700)
commit3eafe50708deca10d155ccff597a91dcecc2d869
treeafb0d939214fa1553dbe94ebb88dac22ad0271f7
parent9bcc08939223c5a2bad42748ee53ab69f5338a32
r8169: check dma mapping failures

Check possible dma mapping errors and do clean up if it happens.

Fix overwrap bug in rtl8169_tx_clear on the way.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/r8169.c