Skip to content
Commit 79cac2a2 authored by David Kimdon's avatar David Kimdon Committed by David S. Miller
Browse files

[BR_NETFILTER]: Fix leak if skb traverses > 1 bridge



Call nf_bridge_put() before allocating a new nf_bridge structure and
potentially overwriting the pointer to a previously allocated one.
This fixes a memory leak which can occur when the bridge topology
allows for an skb to traverse more than one bridge.

Signed-off-by: default avatarDavid Kimdon <david.kimdon@devicescape.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6f4353d8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment