]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sfc: Fix DMA mapping cleanup in case of an error in TSO
authorNeil Turton <nturton@solarflare.com>
Wed, 23 Dec 2009 13:47:13 +0000 (13:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Dec 2009 03:09:05 +0000 (19:09 -0800)
commita7ebd27a13757248863cd61e541af7fa9e7727ee
tree0d49c2a37aed7f88dbe6cf4bf9f851901328d351
parenta355020af415947c7dee7e00a91360d11b6a9b47
sfc: Fix DMA mapping cleanup in case of an error in TSO

We need buffer->len to remain valid to work out the correct address to
be unmapped.  We therefore need to clear buffer->len after the unmap
operation.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/tx.c