Revision 342afce10d6f61c443c95e244f812d4766f73f53 authored by DENG Qingfang on 16 October 2021, 06:24:14 UTC, committed by David S. Miller on 18 October 2021, 12:22:21 UTC
Setting ds->num_ports to DSA_MAX_PORTS made DSA core allocate unnecessary
dsa_port's and call mt7530_port_disable for non-existent ports.

Set it to MT7530_NUM_PORTS to fix that, and dsa_is_user_port check in
port_enable/disable is no longer required.

Cc: stable@vger.kernel.org
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 66d2628
History

back to top