commit | a21771dd189b340328c573da9e005068e8a74c53 | [log] [tgz] |
---|---|---|
author | Matt Carlson <mcarlson@broadcom.com> | Mon Nov 02 14:25:31 2009 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon Nov 02 23:39:02 2009 -0800 |
tree | 84181a65a4e13edd6b14898e1747d8c84240c6c8 | |
parent | 52cdf8526fe24f11d300b75458ddee017f3f4c88 [diff] |
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>