dwc_eth_qos: do not register semi-initialized device
authorLars Persson <lars.persson@axis.com>
Thu, 8 Sep 2016 11:24:21 +0000 (13:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Sep 2016 02:20:21 +0000 (19:20 -0700)
commit47b02f7294a483387772a46931da942b2ca9d845
tree0058445575d9b9c2d4aec5b703e40ec8c2a4e7ec
parent7303a1475008bee5c3e82a06a282568415690d72
dwc_eth_qos: do not register semi-initialized device

We move register_netdev() to the end of dwceqos_probe() to close any
races where the netdev callbacks are called before the initialization
has finished.

Reported-by: Pavel Andrianov <andrianov@ispras.ru>
Signed-off-by: Lars Persson <larper@axis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/synopsys/dwc_eth_qos.c