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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 28 Jan 2010 23:00:31 +0000 (15:00 -0800)
commitc97c73dead2d08a2e3eb2f84ad27b941deaef405
tree01eb956460f1f439ca1796dd37a183d232cc87b5
parent9396c903006269d71ee54431b7a405cc8c318efd
sfc: Fix DMA mapping cleanup in case of an error in TSO

commit a7ebd27a13757248863cd61e541af7fa9e7727ee upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/sfc/tx.c