Commit 1f3a1f38 authored by Neil Turton's avatar Neil Turton Committed by Greg Kroah-Hartman
Browse files

sfc: Fix DMA mapping cleanup in case of an error in TSO



commit a7ebd27a 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: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 769c57aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment