aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorMichal Vokáč <[email protected]>2019-10-24 15:46:58 +0200
committerDavid S. Miller <[email protected]>2019-10-28 13:39:31 -0700
commitf0d532c43073c8622f63872e3b8f188fec24ab75 (patch)
tree1d183ab21595d4e82ba80bf57afd93d75e2b9648 /lib/test_overflow.c
parent556f124fb30621df3089d624ac57f13744712753 (diff)
net: dsa: qca8k: Initialize the switch with correct number of ports
Since commit 0394a63acfe2 ("net: dsa: enable and disable all ports") the dsa core disables all unused ports of a switch. In this case disabling ports with numbers higher than QCA8K_NUM_PORTS causes that some switch registers are overwritten with incorrect content. To fix this, initialize the dsa_switch->num_ports with correct number of ports. Fixes: 7e99e3470172 ("net: dsa: remove dsa_switch_alloc helper") Signed-off-by: Michal Vokáč <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions