summaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@gmail.com>2019-10-21 16:51:28 -0400
committerJakub Kicinski <jakub.kicinski@netronome.com>2019-10-22 12:37:07 -0700
commitd5a619bf60ecf910175606921b4610a2842c635e (patch)
tree45c56f0c2f5482cee1dac26eb0364d02295ab841 /net/dsa
parentef2025ec0acc92fa15ad3df386cb18fefe880643 (diff)
downloadlinux-d5a619bf60ecf910175606921b4610a2842c635e.tar.gz
linux-d5a619bf60ecf910175606921b4610a2842c635e.tar.bz2
linux-d5a619bf60ecf910175606921b4610a2842c635e.zip
net: dsa: sja1105: register switch before assigning port private data
Like the dsa_switch_tree structures, the dsa_port structures will be allocated on switch registration. The SJA1105 driver is the only one accessing the dsa_port structure after the switch allocation and before the switch registration. For that reason, move switch registration prior to assigning the priv member of the dsa_port structures. Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'net/dsa')
0 files changed, 0 insertions, 0 deletions