summaryrefslogtreecommitdiff
path: root/net/rfkill
diff options
context:
space:
mode:
authorDENG Qingfang <dqfext@gmail.com>2021-10-16 09:24:14 +0300
committerDavid S. Miller <davem@davemloft.net>2021-10-18 15:22:21 +0300
commit342afce10d6f61c443c95e244f812d4766f73f53 (patch)
treefe85de461d6a2864a2ad68b7f5130a5a32cfad6a /net/rfkill
parent66d262804a2276721eac86cf18fcd61046149193 (diff)
downloadlinux-342afce10d6f61c443c95e244f812d4766f73f53.tar.xz
net: dsa: mt7530: correct ds->num_ports
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>
Diffstat (limited to 'net/rfkill')
0 files changed, 0 insertions, 0 deletions