From: Stanislav Kozina Date: Thu, 16 Aug 2012 11:01:47 +0000 (+0100) Subject: Remove BUG_ON from n_tty_read() X-Git-Tag: v3.2.32~141 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f39a95cd513843b051b9854bc3b60dc9c1077479;p=pandora-kernel.git 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 Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed