This is a note to let you know that I've just added the patch titled

    Remove BUG_ON from n_tty_read()

to the 3.6-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     remove-bug_on-from-n_tty_read.patch
and it can be found in the queue-3.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From e9490e93c1978b6669f3e993caa3189be13ce459 Mon Sep 17 00:00:00 2001
From: Stanislav Kozina <[email protected]>
Date: Thu, 16 Aug 2012 12:01:47 +0100
Subject: Remove BUG_ON from n_tty_read()

From: Stanislav Kozina <[email protected]>

commit e9490e93c1978b6669f3e993caa3189be13ce459 upstream.

Change the BUG_ON to WARN_ON and return in case of tty->read_buf==NULL. We want 
to track a
couple of long standing reports of this but at the same time we can avoid 
killing the box.

Signed-off-by: Stanislav Kozina <[email protected]>
Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/tty/n_tty.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/drivers/tty/n_tty.c
+++ b/drivers/tty/n_tty.c
@@ -1728,7 +1728,8 @@ static ssize_t n_tty_read(struct tty_str
 
 do_it_again:
 
-       BUG_ON(!tty->read_buf);
+       if (WARN_ON(!tty->read_buf))
+               return -EAGAIN;
 
        c = job_control(tty, file);
        if (c < 0)


Patches currently in stable-queue which might be from [email protected] are

queue-3.6/remove-bug_on-from-n_tty_read.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to