]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: fix switch tree list
authorVivien Didelot <vivien.didelot@gmail.com>
Fri, 18 Oct 2019 21:02:46 +0000 (17:02 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Oct 2019 19:19:41 +0000 (12:19 -0700)
commit0a31a6e4e9494f03503dbbadc32175a9318c6799
tree40ca1db2461bd0a1479c2a041194b92fb49193ec
parent3315550debad65394504d9fe5e7f5425c1d9b9ed
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: da65645b5ea7 ("net: dsa: Add new binding implementation")
Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c