提交 afcb50ba 编写于 作者: R Roopa Prabhu 提交者: David S. Miller

bridge: vlan_tunnel: explicitly reset metadata attrs to NULL on failure

Fixes: efa5356b ("bridge: per vlan dst_metadata netlink support")
Signed-off-by: NRoopa Prabhu <roopa@cumulusnetworks.com>
Reviewed-by: NNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6850f8b5
...@@ -85,6 +85,8 @@ static int __vlan_tunnel_info_add(struct net_bridge_vlan_group *vg, ...@@ -85,6 +85,8 @@ static int __vlan_tunnel_info_add(struct net_bridge_vlan_group *vg,
return 0; return 0;
out: out:
dst_release(&vlan->tinfo.tunnel_dst->dst); dst_release(&vlan->tinfo.tunnel_dst->dst);
vlan->tinfo.tunnel_dst = NULL;
vlan->tinfo.tunnel_id = 0;
return err; return err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册