aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if_vlan.h
diff options
context:
space:
mode:
authorIvan Vecera <ivecera@redhat.com>2013-11-06 14:02:36 +0100
committerDavid S. Miller <davem@davemloft.net>2013-11-07 19:09:44 -0500
commit85aec73d595b8847f9c4ea571deb127913f0d508 (patch)
treee4d2fcdd4cb1d6e1dd93f835cfc708e7476a4ed0 /include/linux/if_vlan.h
parentMAINTAINERS: Update bnx2x maintainer (diff)
downloadlinux-dev-85aec73d595b8847f9c4ea571deb127913f0d508.tar.xz
linux-dev-85aec73d595b8847f9c4ea571deb127913f0d508.zip
tg3: avoid double-freeing of rx data memory
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>
Diffstat (limited to 'include/linux/if_vlan.h')
0 files changed, 0 insertions, 0 deletions