netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] Phonet: hold GPRS device while cleaning up
@ 2008-12-08 10:09 Rémi Denis-Courmont
  2008-12-08 10:21 ` David Miller
  2008-12-09  8:15 ` [PATCH net] Phonet: hold GPRS device while cleaning up David Miller
  0 siblings, 2 replies; 19+ messages in thread
From: Rémi Denis-Courmont @ 2008-12-08 10:09 UTC (permalink / raw)
  To: netdev

Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.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


^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2008-12-15  8:54 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-08 10:09 [PATCH net] Phonet: hold GPRS device while cleaning up Rémi Denis-Courmont
2008-12-08 10:21 ` David Miller
2008-12-08 11:03   ` Rémi Denis-Courmont
2008-12-08 11:45     ` David Miller
2008-12-09  7:45       ` [PATCH] Phonet: improve GPRS variable names Rémi Denis-Courmont
2008-12-09  7:51         ` Rémi Denis-Courmont
2008-12-09  8:05           ` David Miller
2008-12-09 23:29         ` David Miller
2008-12-10 13:14           ` Rémi Denis-Courmont
2008-12-10 13:15             ` [PATCH net] Phonet: ensure GPRS device does not go away during TX work Rémi Denis-Courmont
2008-12-10 23:28               ` David Miller
2008-12-11  8:11                 ` Rémi Denis-Courmont
2008-12-11  8:33                   ` David Miller
2008-12-11 14:04                     ` [PATCH net-2.6] Phonet: keep TX queue disabled when the device is off Rémi Denis-Courmont
2008-12-15  8:54                       ` David Miller
2008-12-10 13:15             ` [PATCH net-next] Phonet: improve GPRS variable names Rémi Denis-Courmont
2008-12-09  8:15 ` [PATCH net] Phonet: hold GPRS device while cleaning up David Miller
2008-12-09 15:03   ` Rémi Denis-Courmont
2008-12-09 23:28     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).