]> bbs.cooldavid.org Git - jme.git/commitdiff
jme: fix panic on load
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 31 Oct 2010 05:46:18 +0000 (05:46 +0000)
committerGuo-Fu Tseng <cooldavid@cooldavid.org>
Tue, 14 Dec 2010 14:57:34 +0000 (22:57 +0800)
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>
jme.c

diff --git a/jme.c b/jme.c
index 0c7720817a5c286f9f8dbf27d0173a9be7d68554..5e83dd82850a85303f7c98e8ac3c99155a72402d 100644 (file)
--- a/jme.c
+++ b/jme.c
@@ -3109,11 +3109,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");