From: Roopa Prabhu Date: Thu, 16 Feb 2017 19:29:21 +0000 (-0800) Subject: bridge: vlan_tunnel: explicitly reset metadata attrs to NULL on failure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=afcb50ba7f745eea32f91d7f63d6aa88f929f9c4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git bridge: vlan_tunnel: explicitly reset metadata attrs to NULL on failure Fixes: efa5356b0d97 ("bridge: per vlan dst_metadata netlink support") Signed-off-by: Roopa Prabhu Reviewed-by: Nikolay Aleksandrov Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_vlan_tunnel.c b/net/bridge/br_vlan_tunnel.c index b2b79a070162..6d2c4eed2dc8 100644 --- a/net/bridge/br_vlan_tunnel.c +++ b/net/bridge/br_vlan_tunnel.c @@ -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; }