Skip to content

Commit

Permalink
bridge: vlan_tunnel: explicitly reset metadata attrs to NULL on failure
Browse files Browse the repository at this point in the history
Fixes: efa5356 ("bridge: per vlan dst_metadata netlink support")
Signed-off-by: Roopa Prabhu <[email protected]>
Reviewed-by: Nikolay Aleksandrov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
roopa-prabhu authored and davem330 committed Feb 17, 2017
1 parent 6850f8b commit afcb50b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/bridge/br_vlan_tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ static int __vlan_tunnel_info_add(struct net_bridge_vlan_group *vg,
return 0;
out:
dst_release(&vlan->tinfo.tunnel_dst->dst);
vlan->tinfo.tunnel_dst = NULL;
vlan->tinfo.tunnel_id = 0;

return err;
}
Expand Down

0 comments on commit afcb50b

Please sign in to comment.