]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Fix dsa_is_user_port() test inversion
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 12 Mar 2018 23:00:40 +0000 (16:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Mar 2018 01:04:55 +0000 (21:04 -0400)
commit42b9b5c068d22d13a28a1577535a531c8e606871
treed358952a536aa230f5443c7bf16141a3cc00b2b5
parent1a5ff80c35a70f11a5bc7c90e83efe00146e74c1
net: dsa: Fix dsa_is_user_port() test inversion

During the conversion to dsa_is_user_port(), a condition ended up being
reversed, which would prevent the creation of any user port when using
the legacy binding and/or platform data, fix that.

Fixes: 23c3e8ee2c60 ("net: dsa: use dsa_is_user_port everywhere")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/legacy.c