mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
net: dsa: fix switch tree list
If there are multiple switch trees on the device, only the last one
will be listed, because the arguments of list_add_tail are swapped.
Fixes: 83c0afaec7 ("net: dsa: Add new binding implementation")
Signed-off-by: Vivien Didelot <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
05908d72cc
commit
50c7d2ba9d
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ static struct dsa_switch_tree *dsa_tree_alloc(int index)
|
|||
dst->index = index;
|
||||
|
||||
INIT_LIST_HEAD(&dst->list);
|
||||
list_add_tail(&dsa_tree_list, &dst->list);
|
||||
list_add_tail(&dst->list, &dsa_tree_list);
|
||||
|
||||
kref_init(&dst->refcount);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue