]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: fix unmap_single/page() called incorrectly in Tx compl processing
authorSathya Perla <sathyap@serverengines.com>
Mon, 22 Mar 2010 20:41:34 +0000 (20:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Mar 2010 20:22:40 +0000 (13:22 -0700)
commitb5c0827ac59aab49c2606b3aed0c3f83b7e98834
treee9eec6144264de7b07e6fe1039ee8b0f3d61b86e
parentf84ba99fe7a4a63f9585344a504d452430b052cc
be2net: fix unmap_single/page() called incorrectly in Tx compl processing

The first wrb seen by tx compl processing does not have a dma handle in it.
Currently, pci_unmap_single() is attempted on this wrb and pci_unmap_page() on the
rest. So, pci_unmap_page() gets incorrectly called on the dma hdl of skb->data (that
was mapped using map_single()). This patch fixes this issue.

Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c