]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: make dsa_switch_setup check for valid port names
authorFlorian Fainelli <florian@openwrt.org>
Mon, 21 Jan 2013 09:58:51 +0000 (09:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jan 2013 20:40:12 +0000 (15:40 -0500)
commita36874f28eab63141e0bbdd5be2988cd3a9e676e
tree774573c6a730967410a51e954577424be0977fe6
parentf4656e03d5c3ae787935f856baa4bf0234d8aff3
dsa: make dsa_switch_setup check for valid port names

This patch changes dsa_switch_setup() to ensure that at least one valid
valid port name is specified and will bail out with an error in case we
walked the maximum number of port with a valid port name found.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c