diff options
author | Ivan Vecera <ivecera@redhat.com> | 2013-11-06 17:02:36 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-12 10:36:28 +0400 |
commit | 6c02a5a2672bf6c70be5282316eaad28052fa1dd (patch) | |
tree | 690525e070e3dbbcb50cf8be4a240d3e7f582ad7 /drivers/net/ethernet/calxeda | |
parent | 61fca0fb44c77aadf31f89ff532d1012910264b6 (diff) | |
download | linux-6c02a5a2672bf6c70be5282316eaad28052fa1dd.tar.xz |
tg3: avoid double-freeing of rx data memory
commit 85aec73d595b8847f9c4ea571deb127913f0d508 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>
Diffstat (limited to 'drivers/net/ethernet/calxeda')
0 files changed, 0 insertions, 0 deletions