summaryrefslogtreecommitdiff
path: root/scripts/conmakehash.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-03-25 21:01:47 -0700
committerChris Wright <chrisw@sous-sol.org>2009-04-02 13:55:15 -0700
commit813352bc3317b1104212667ce227a901a8d49908 (patch)
treebd3fe078411bd58fd12309276c6c9d83b66af526 /scripts/conmakehash.c
parentdcd2d49aa7d2b6405457e042cd5f92e247ff0e10 (diff)
bridge: bad error handling when adding invalid ether address
[ Upstream commit cda6d377ec6b2ee2e58d563d0bd7eb313e0165df ] This fixes an crash when empty bond device is added to a bridge. If an interface with invalid ethernet address (all zero) is added to a bridge, then bridge code detects it when setting up the forward databas entry. But the error unwind is broken, the bridge port object can get freed twice: once when ref count went to zeo, and once by kfree. Since object is never really accessible, just free it. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'scripts/conmakehash.c')
0 files changed, 0 insertions, 0 deletions