Files
linux/drivers/net/ethernet
Ivan Vecera 6c02a5a267 tg3: avoid double-freeing of rx data memory
commit 85aec73d59 upstream.

If build_skb fails the memory associated with the ring buffer is freed but
the ri->data member is not zeroed in this case. This causes a double-free
of this memory in tg3_free_rings->... path. The patch moves this block after
setting ri->data to NULL.
It would be nice to fix this bug also in stable >= v3.4 trees.

Cc: Nithin Nayak Sujir <nsujir@broadcom.com>
Cc: Michael Chan <mchan@broadcom.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Acked-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-11 22:36:28 -08:00
..
2013-05-11 17:40:14 -07:00
2013-08-11 18:35:26 -07:00
2013-06-19 16:59:33 -07:00
2013-05-11 17:40:14 -07:00
2013-04-15 14:11:37 -04:00
2013-06-19 18:40:21 -07:00
2013-11-04 04:31:05 -08:00
2013-05-02 16:20:31 -04:00
2013-01-29 14:07:05 -05:00
2013-05-23 12:15:32 -07:00