]> git.karo-electronics.de Git - karo-tx-linux.git/commit
solos-pci: fix double-free of TX skb in DMA mode
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 11 Dec 2012 14:57:14 +0000 (14:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Dec 2012 05:16:47 +0000 (00:16 -0500)
commitcae49ede00ec3d0cda290b03fee55b72b49efc11
tree56080637d0aa2421913818cb9108152510a07851
parentfda4d85d6124134dd7c72d6559bd275732eb39b9
solos-pci: fix double-free of TX skb in DMA mode

We weren't clearing card->tx_skb[port] when processing the TX done interrupt.
If there wasn't another skb ready to transmit immediately, this led to a
double-free because we'd free it *again* next time we did have a packet to
send.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: stable@kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/solos-pci.c