tg3: Add more PCI DMA map error checking
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 2 Nov 2009 14:25:31 +0000 (14:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Nov 2009 07:39:02 +0000 (23:39 -0800)
commita21771dd189b340328c573da9e005068e8a74c53
tree84181a65a4e13edd6b14898e1747d8c84240c6c8
parent52cdf8526fe24f11d300b75458ddee017f3f4c88
tg3: Add more PCI DMA map error checking

This patch adds code to check the status of pci_map_single() before
allowing rx buffers to be used.  It also converts the pci_map_single()
call in tg3_run_loopback() to use skb_dma_map() instead.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c