Skip to content

Commit de7fe78

Browse files
etantilovdavem330
authored andcommitted
igbvf: fix panic on load
Introduced by commit:e6484930d7c73d324bccda7d43d131088da697b9 net: allocate tx queues in register_netdevice Signed-off-by: Emil Tantilov <[email protected]> Acked-by: Greg Rose <[email protected]> Tested-by: Jeff Pieper <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ec43a81 commit de7fe78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/net/igbvf/netdev.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2783,15 +2783,15 @@ static int __devinit igbvf_probe(struct pci_dev *pdev,
27832783
/* reset the hardware with the new settings */
27842784
igbvf_reset(adapter);
27852785

2786-
/* tell the stack to leave us alone until igbvf_open() is called */
2787-
netif_carrier_off(netdev);
2788-
netif_stop_queue(netdev);
2789-
27902786
strcpy(netdev->name, "eth%d");
27912787
err = register_netdev(netdev);
27922788
if (err)
27932789
goto err_hw_init;
27942790

2791+
/* tell the stack to leave us alone until igbvf_open() is called */
2792+
netif_carrier_off(netdev);
2793+
netif_stop_queue(netdev);
2794+
27952795
igbvf_print_device_info(adapter);
27962796

27972797
igbvf_initialize_last_counter_stats(adapter);

0 commit comments

Comments
 (0)