From: Benjamin Li Date: Thu, 9 Oct 2008 19:26:41 +0000 (-0700) Subject: bnx2: Handle DMA mapping errors. X-Git-Tag: v2.6.28-rc1~717^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d16af8665504c89f9ef3aae56f54fb93e48da61;p=pandora-kernel.git 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 Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed