[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1228730965-19087-1-git-send-email-remi.denis-courmont@nokia.com>
Date: Mon, 8 Dec 2008 12:09:25 +0200
From: Rémi Denis-Courmont
<remi.denis-courmont@...ia.com>
To: netdev@...r.kernel.org
Subject: [PATCH net] Phonet: hold GPRS device while cleaning up
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@...ia.com>
---
net/phonet/pep-gprs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/net/phonet/pep-gprs.c b/net/phonet/pep-gprs.c
index 9978afb..9602bfc 100644
--- a/net/phonet/pep-gprs.c
+++ b/net/phonet/pep-gprs.c
@@ -340,8 +340,10 @@ void gprs_detach(struct sock *sk)
release_sock(sk);
printk(KERN_DEBUG"%s: detached\n", net->name);
+ dev_hold(net); /* TX work still needs it */
unregister_netdev(net);
flush_scheduled_work();
+ dev_put(net);
sock_put(sk);
skb_queue_purge(&dev->tx_queue);
}
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists