OSDN Git Service

[SERIAL] Fix oops when removing suspended serial port
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 1 Oct 2006 16:17:40 +0000 (17:17 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 1 Oct 2006 16:17:40 +0000 (17:17 +0100)
commita6b93a908508810c5d51dd9b390283345af6f2d9
tree71b48d3a659a025ebf333abfeec7b828becb60cb
parentfe59d5372ae719ca4550958f1e5bb4dd6eeac9cd
[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>
drivers/serial/serial_core.c
include/linux/serial_core.h