remarkable-linux/drivers/net/ethernet/atheros
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
..
alx alx: fix lockdep annotation 2013-07-11 11:47:07 -07:00
atl1c net/ethernet/atheros/atl1c/atl1c_main: Use module_pci_driver to register driver 2013-05-22 14:35:03 -07:00
atl1e atl1e: unmap partially mapped skb on dma error and free skb 2013-07-16 12:09:02 -07:00
atlx net/ethernet/atheros/atlx/atl1: Use module_pci_driver to register driver 2013-05-22 14:35:03 -07:00
Kconfig alx: remove NET_CORE Kconfig select 2013-07-01 13:18:19 -07:00
Makefile alx: add a simple AR816x/AR817x device driver 2013-06-17 16:04:34 -07:00