Skip to content

Commit

Permalink
jme: fix panic on load
Browse files Browse the repository at this point in the history
Its now illegal to call netif_stop_queue() before register_netdev()

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Guo-Fu Tseng <cooldavid@cooldavid.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Oct 31, 2010
1 parent ce384d9 commit fde4590
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/jme.c
Original file line number Diff line number Diff line change
Expand Up @@ -2955,11 +2955,7 @@ jme_init_one(struct pci_dev *pdev,
* Tell stack that we are not ready to work until open()
*/
netif_carrier_off(netdev);
netif_stop_queue(netdev);

/*
* Register netdev
*/
rc = register_netdev(netdev);
if (rc) {
pr_err("Cannot register net device\n");
Expand Down

0 comments on commit fde4590

Please sign in to comment.