sfc: Fix DMA mapping cleanup in case of an error in TSO
commit1f3a1f385336c324df07fdf420637f88bd3c137c
authorNeil Turton <nturton@solarflare.com>
Wed, 23 Dec 2009 13:47:13 +0000 (23 13:47 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:55:41 +0000 (1 15:55 -0700)
tree6a176922ac7503321c5571c575f16713e45198f2
parent769c57aa2e772496797ef662a367af30be6a7aea
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