e1000: Fix DMA mapping error handling on RX
authorAnton Blanchard <anton@samba.org>
Fri, 19 Feb 2010 17:54:53 +0000 (17:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Feb 2010 09:24:59 +0000 (01:24 -0800)
commitb5abb028e214cca68f4231d4f3bc0847ddbc986e
tree1ff65ef5395914b6b5e9f77b7cd550cebc7dc20f
parent242cc0547f3bcecc0b02ca6f3e9512760185727e
e1000: Fix DMA mapping error handling on RX

Check for error return from pci_map_single/pci_map_page and clean up.

With this and the previous patch the driver was able to handle a significant
percentage of errors (I set the fault injection rate to 10% and could still
download large files at a reasonable speed).

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000/e1000_main.c