[SERIAL] Fix oops when removing suspended serial port
commitef1136fb7497e0ad6b419add0b463c9a770c42ee
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 28 Mar 2007 19:28:32 +0000 (28 21:28 +0200)
committerAdrian Bunk <bunk@stusta.de>
Wed, 28 Mar 2007 19:28:32 +0000 (28 21:28 +0200)
tree052d8eefba84688370f9b85ec4eff42b971215bb
parentaaab1c66f78311771aeaeb4f2e9aab8fab3b1c6d
[SERIAL] Fix oops when removing suspended serial port

A serial card might have been removed when the system is resumed.
This results in a suspended port being shut down, which results in
the ports shutdown method being called twice in a row.  This causes
BUGs.  Avoid this by tracking the suspended state separately from
the initialised state.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/serial/serial_core.c
include/linux/serial_core.h