From: Sathya Perla Date: Mon, 22 Mar 2010 20:41:34 +0000 (+0000) Subject: be2net: fix unmap_single/page() called incorrectly in Tx compl processing X-Git-Tag: v2.6.35-rc1~473^2~702 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec43b1a64a132303a6800c781bc17c683aedc55b;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed