Tetsuo Handa 55d7b68996 serial: access after NULL check in uart_flush_buffer()
I noticed that

  static void uart_flush_buffer(struct tty_struct *tty)
  {
  	struct uart_state *state = tty->driver_data;
  	struct uart_port *port = state->port;
  	unsigned long flags;

  	/*
  	 * This means you called this function _after_ the port was
  	 * closed.  No cookie for you.
  	 */
  	if (!state || !state->info) {
  		WARN_ON(1);
  		return;
  	}

is too late for checking state != NULL.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-05-08 10:46:55 -07:00
..
2008-02-08 09:22:25 -08:00
2008-02-08 09:22:25 -08:00
2008-02-08 09:22:25 -08:00
2008-02-04 13:14:06 +00:00
2008-04-30 08:29:45 -07:00
2008-04-17 20:05:39 +02:00
2007-11-14 18:45:46 -08:00
2008-02-03 14:47:38 +02:00
2008-04-19 17:17:34 +01:00
2007-11-29 09:24:53 -08:00
2008-04-30 08:29:47 -07:00
2008-04-30 08:29:45 -07:00
2008-02-03 17:29:25 +02:00
2007-09-11 17:21:19 -07:00
2008-05-02 05:22:51 -07:00
2008-05-02 05:22:51 -07:00
2007-07-18 08:38:22 -07:00
2007-07-18 08:38:22 -07:00