mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
bridge: Fix error path in nbp_vlan_init
Fix error path order in nbp_vlan_init, so if switchdev_port_attr_set
call failes, the vlan_hash wouldn't be destroyed before inited.
Fixes: efa5356b0d ("bridge: per vlan dst_metadata netlink support")
CC: Roopa Prabhu <[email protected]>
Signed-off-by: Yotam Gigi <[email protected]>
Acked-by: Roopa Prabhu <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3b45a4106f
commit
df2c43343b
1 changed files with 1 additions and 1 deletions
|
|
@ -997,10 +997,10 @@ err_vlan_add:
|
|||
RCU_INIT_POINTER(p->vlgrp, NULL);
|
||||
synchronize_rcu();
|
||||
vlan_tunnel_deinit(vg);
|
||||
err_vlan_enabled:
|
||||
err_tunnel_init:
|
||||
rhashtable_destroy(&vg->vlan_hash);
|
||||
err_rhtbl:
|
||||
err_vlan_enabled:
|
||||
kfree(vg);
|
||||
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue