android_kernel_xiaomi_sm8350/drivers/serial
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
..
cpm_uart serial: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
jsm jsm: add new supported board to jsm serial driver 2008-05-01 08:04:01 -07:00
8250_accent.c
8250_acorn.c
8250_boca.c
8250_early.c 8250: switch 8250 drivers to use _nocache ioremaps 2008-05-01 08:04:00 -07:00
8250_exar_st16c554.c
8250_fourport.c
8250_gsc.c
8250_hp300.c
8250_hub6.c
8250_mca.c
8250_pci.c 8250: switch 8250 drivers to use _nocache ioremaps 2008-05-01 08:04:00 -07:00
8250_pnp.c
8250.c 8250: switch 8250 drivers to use _nocache ioremaps 2008-05-01 08:04:00 -07:00
8250.h
21285.c
68328serial.c serial m68k: put_char returns 2008-04-30 08:29:45 -07:00
68328serial.h
68360serial.c serial: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
amba-pl010.c
amba-pl011.c
atmel_serial.c atmel_serial: remove duplicated macro definition 2008-04-28 08:58:30 -07:00
bfin_5xx.c serial: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
bfin_sport_uart.c Blackfin serial driver: this driver enable SPORTs on Blackfin emulate UART 2008-04-30 08:29:30 -07:00
bfin_sport_uart.h Blackfin serial driver: this driver enable SPORTs on Blackfin emulate UART 2008-04-30 08:29:30 -07:00
clps711x.c
crisv10.c serial: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
crisv10.h
dz.c
dz.h
icom.c
icom.h
imx.c
ioc3_serial.c serial: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
ioc4_serial.c serial: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
ip22zilog.c
ip22zilog.h
Kconfig Blackfin serial driver: this driver enable SPORTs on Blackfin emulate UART 2008-04-30 08:29:30 -07:00
kgdboc.c tty: The big operations rework 2008-04-30 08:29:47 -07:00
m32r_sio_reg.h
m32r_sio.c
m32r_sio.h
Makefile Blackfin serial driver: this driver enable SPORTs on Blackfin emulate UART 2008-04-30 08:29:30 -07:00
mcf.c
mcfserial.c serial m68k: put_char returns 2008-04-30 08:29:45 -07:00
mcfserial.h
mpc52xx_uart.c Fix a potential issue in mpc52xx uart driver 2008-05-01 11:59:12 -06:00
mpsc.c
mux.c
netx-serial.c tty/serial: lay the foundations for the next set of reworks 2008-04-30 08:29:45 -07:00
of_serial.c
pmac_zilog.c
pmac_zilog.h
pnx8xxx_uart.c
pxa.c
s3c2410.c serial: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
sa1100.c serial: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
sb1250-duart.c
sc26xx.c
serial_core.c serial: access after NULL check in uart_flush_buffer() 2008-05-08 10:46:55 -07:00
serial_cs.c
serial_ks8695.c
serial_lh7a40x.c
serial_txx9.c
sh-sci.c serial: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
sh-sci.h
sn_console.c serial: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
suncore.c
suncore.h
sunhv.c serial: Fix sparc driver name strings. 2008-05-02 05:22:51 -07:00
sunsab.c serial: Fix sparc driver name strings. 2008-05-02 05:22:51 -07:00
sunsab.h
sunsu.c serial: Fix sparc driver name strings. 2008-05-02 05:22:51 -07:00
sunzilog.c serial: Fix sparc driver name strings. 2008-05-02 05:22:51 -07:00
sunzilog.h
uartlite.c serial: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
ucc_uart.c serial: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
v850e_uart.c
vr41xx_siu.c serial: add vr41xx_siu_early_setup() for serial console 2008-04-28 08:58:30 -07:00
zs.c
zs.h