hyperv: Fix race between probe and open calls
authorHaiyang Zhang <[email protected]>
Sat, 21 Dec 2013 00:52:31 +0000 (16:52 -0800)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Reviewed-by: K. Y. Srinivasan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/hyperv/netvsc_drv.c