2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00
linux-next/drivers/net/ethernet/atheros/atl1e
Neil Horman 584ec43553 atl1e: unmap partially mapped skb on dma error and free skb
Ben Hutchings pointed out that my recent update to atl1e
in commit 352900b583
("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>
2013-07-16 12:09:02 -07:00
..
atl1e_ethtool.c ethernet: Remove casts to same type 2012-06-06 09:31:33 -07:00
atl1e_hw.c
atl1e_hw.h
atl1e_main.c atl1e: unmap partially mapped skb on dma error and free skb 2013-07-16 12:09:02 -07:00
atl1e_param.c net/atheros: remove __dev* attributes 2012-12-03 11:16:54 -08:00
atl1e.h atl1e: limit gso segment size to prevent generation of wrong ip length fields 2013-04-05 00:46:13 -04:00
Makefile