]> git.baikalelectronics.ru Git - kernel.git/commit
tty, serial: Fix race and NULL check in uart_close()
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 12 Oct 2009 17:13:54 +0000 (19:13 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 12 Oct 2009 17:21:33 +0000 (10:21 -0700)
commit8096d4a5b22970c4929c01346f6dab00000c2c43
tree728565e8a1f01d89dda17dff00a401915378a508
parent40ecb5d8e7ad4100fb2835aa152eec0952540b10
tty, serial: Fix race and NULL check in uart_close()

Commit ee51a91a58ac ("serial: use tty_port pointers in the core code")
contained two bugs that causes (rare) crashes:

 - the rename typoed one site

 - a NULL check was missed

Reported-and-tested-by: Ingo Molnar <mingo@elte.hu>
Cc: Greg KH <gregkh@suse.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/serial_core.c