]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Remove BUG_ON from n_tty_read()
authorStanislav Kozina <skozina@redhat.com>
Thu, 16 Aug 2012 11:01:47 +0000 (12:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 18:53:14 +0000 (11:53 -0700)
commite9490e93c1978b6669f3e993caa3189be13ce459
tree3fd3cd99a484a27e7beaf348c96f87859b7bf1ac
parent6683549e4ba050cddd8fa88c3f1e53b825fdcb6d
Remove BUG_ON from n_tty_read()

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 <skozina@redhat.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: Horses <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c