]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] SERIAL: Fix oops when removing suspended serial port
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 17 Oct 2006 11:26:34 +0000 (13:26 +0200)
committerChris Wright <chrisw@sous-sol.org>
Sat, 4 Nov 2006 01:33:46 +0000 (17:33 -0800)
commit4d496dde1429e99c49070190cb4ec1f3c3effbdd
tree86e7f955609c5acfce065d63ca2d1467e217012e
parent9b1bb2cd3271ea65aad59708d466917f368562cf
[PATCH] SERIAL: Fix oops when removing suspended serial port

[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: maximilian attems <maks@sternwelten.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/serial/serial_core.c
include/linux/serial_core.h