]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
bnx2: Handle DMA mapping errors.
authorBenjamin Li <benli@broadcom.com>
Thu, 9 Oct 2008 19:26:41 +0000 (12:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Oct 2008 19:26:41 +0000 (12:26 -0700)
commit3d16af8665504c89f9ef3aae56f54fb93e48da61
tree465889b9ddae41530e7203d0eb97e7661fb2db93
parenta1efb4b686babf38e5e63add8b990f18e38becc4
bnx2: Handle DMA mapping errors.

Before, the driver would not care about the return codes from pci_map_*
functions.  This could be potentially dangerous if a mapping failed.
Now, we will check all pci_map_* calls.  On the transmit side, we switch
to use the new function skb_dma_map().  On the receive side, we add
pci_dma_mapping_error().

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