vmxnet3: set netdev parant device before calling netdev_info
authorShreyas Bhatewara <sbhatewara@vmware.com>
Wed, 20 Jul 2011 16:01:11 +0000 (16:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jul 2011 03:39:47 +0000 (20:39 -0700)
commite101e7ddad7a16ada030d6d1f044381924bcc0c1
tree5557d53ebcb115ab4ab359de0a027de6659dff14
parent308859097831831a979f2e82cbeef0a94f438080
vmxnet3: set netdev parant device before calling netdev_info

Parent device for netdev should be set before netdev_info() can be called
otherwise there is a NULL pointer dereference and probe() fails.

Signed-off-by: Shreyas N Bhatewara <sbhatewara@vmware.com>
Signed-off-by: Scott J. Goldman <scottjg@vmware.com>--
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c