Skip to contentSkip to conversation

net/ppp: fix comments - ppp_{sync,asynctty}_receive() may sleep

PATCH Applied Tilman Schmidt 2 participants 2 messages Oct 1, 2009 – Oct 7, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ppp: fix comments - ppp_{sync,asynctty}_receive() may sleep

The receive_buf methods of the N_PPP and N_SYNC_PPP line disciplines, ppp_asynctty_receive() and ppp_sync_receive(), call tty_unthrottle() which may sleep. Fix the comments claiming otherwise.

Impact: documentation

---
 drivers/net/ppp_async.c   |    5 +----
 drivers/net/ppp_synctty.c |    5 +----
 2 files changed, 2 insertions(+), 8 deletions(-)
drivers/net/ppp_async.c +1 -4
index 6de8399..30b1b33 100644
@@ -337,10 +337,7 @@ ppp_asynctty_poll(struct tty_struct *tty, struct file *file, poll_table *wait)
 	return 0;
 }
 
-/*
- * This can now be called from hard interrupt level as well
- * as soft interrupt level or mainline.
- */
+/* May sleep, don't call from interrupt level or with interrupts disabled */
 static void
 ppp_asynctty_receive(struct tty_struct *tty, const unsigned char *buf,
 		  char *cflags, int count)
drivers/net/ppp_synctty.c +1 -4
index d2fa2db..c908b08 100644
@@ -378,10 +378,7 @@ ppp_sync_poll(struct tty_struct *tty, struct file *file, poll_table *wait)
 	return 0;
 }
 
-/*
- * This can now be called from hard interrupt level as well
- * as soft interrupt level or mainline.
- */
+/* May sleep, don't call from interrupt level or with interrupts disabled */
 static void
 ppp_sync_receive(struct tty_struct *tty, const unsigned char *buf,
 		  char *cflags, int count)
Signature · 1 line
1.6.2.1.214.ge986c
maintainer Applied
#1 lore raw

From: Tilman Schmidt <[email protected]>
Date: Thu, 1 Oct 2009 16:28:44 +0200 (CEST)

Quoted 6 lines

The receive_buf methods of the N_PPP and N_SYNC_PPP line disciplines, ppp_asynctty_receive() and ppp_sync_receive(), call tty_unthrottle() which may sleep. Fix the comments claiming otherwise.

Impact: documentation

Applied, thanks.