Skip to content

Commit afcb50b

Browse files
roopa-prabhudavem330
authored andcommitted
bridge: vlan_tunnel: explicitly reset metadata attrs to NULL on failure
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]>
1 parent 6850f8b commit afcb50b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/bridge/br_vlan_tunnel.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ static int __vlan_tunnel_info_add(struct net_bridge_vlan_group *vg,
8585
return 0;
8686
out:
8787
dst_release(&vlan->tinfo.tunnel_dst->dst);
88+
vlan->tinfo.tunnel_dst = NULL;
89+
vlan->tinfo.tunnel_id = 0;
8890

8991
return err;
9092
}

0 commit comments

Comments
 (0)