diff options
author | Neil Horman <nhorman@tuxdriver.com> | 2013-07-16 10:49:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-28 16:26:08 -0700 |
commit | b64a172c19b49fb8583efc379535341cc537cfc2 (patch) | |
tree | 436c63f6ed6553c8c23323660e430722340b7c14 /crypto/proc.c | |
parent | 2cb9c95527519e0dad2bacc2f8a6271aa290f491 (diff) | |
download | linux-3.10-b64a172c19b49fb8583efc379535341cc537cfc2.tar.gz linux-3.10-b64a172c19b49fb8583efc379535341cc537cfc2.tar.bz2 linux-3.10-b64a172c19b49fb8583efc379535341cc537cfc2.zip |
atl1e: unmap partially mapped skb on dma error and free skb
[ Upstream commit 584ec4355355ffac43571b02a314d43eb2f7fcbf ]
Ben Hutchings pointed out that my recent update to atl1e
in commit 352900b583b2852152a1e05ea0e8b579292e731e
("atl1e: fix dma mapping warnings") was missing a bit of code.
Specifically it reset the hardware tx ring to its origional state when
we hit a dma error, but didn't unmap any exiting mappings from the
operation. This patch fixes that up. It also remembers to free the
skb in the event that an error occurs, so we don't leak. Untested, as
I don't have hardware. I think its pretty straightforward, but please
review closely.
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: Ben Hutchings <bhutchings@solarflare.com>
CC: Jay Cliburn <jcliburn@gmail.com>
CC: Chris Snook <chris.snook@gmail.com>
CC: "David S. Miller" <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/proc.c')
0 files changed, 0 insertions, 0 deletions