]> 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>
Sun, 7 Oct 2012 15:39:31 +0000 (08:39 -0700)
commit79abf5039669ff6761d785d78b0c1767811b70ae
treea2cbb0839b99047d3414270db26a2e35e8133239
parentc8181245e0031c9edcc925407bc87a17b2a06271
Remove BUG_ON from n_tty_read()

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