hyperv: Fix race between probe and open calls
authorHaiyang Zhang <haiyangz@microsoft.com>
Sat, 21 Dec 2013 00:52:31 +0000 (16:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Dec 2013 03:23:06 +0000 (22:23 -0500)
commita68f9614614749727286f675d15f1e09d13cb54a
tree1236f0c9e306e2c527846addfb34f7690cc3163d
parent965cdea825693c821d200e38fac9402cde6dce6a
hyperv: Fix race between probe and open calls

Moving the register_netdev to the end of probe to prevent
possible open call happens before NetVSP is connected.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c