]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: uninitialized variable in dsa_slave_netdevice_event()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Oct 2022 15:08:39 +0000 (18:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Oct 2022 10:15:27 +0000 (11:15 +0100)
commit15d66d97e1338f62aa011b197664bb70473fa610
treeffa960b263d3c2c67842ac087094cb5b6e0101f5
parent33d775712a0b527608e7238e52a29c93db545a01
net: dsa: uninitialized variable in dsa_slave_netdevice_event()

Return zero if both dsa_slave_dev_check() and netdev_uses_dsa() are false.

Fixes: 6fd212f7c006 ("net: dsa: allow masters to join a LAG")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c