]> err.no Git - linux-2.6/commit
serial: fix enable_irq_wake/disable_irq_wake imbalance in serial_core.c
authorArjan van de Ven <arjan@linux.intel.com>
Fri, 23 May 2008 20:04:49 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 May 2008 16:56:11 +0000 (09:56 -0700)
commit03a74dcc7eebe6edd778317e82fafdf71e68488c
tree0867f66edb881c53345ea42995a3f6b5782a2737
parentc4185a0e019387f5ad6e99009804965531fa1fab
serial: fix enable_irq_wake/disable_irq_wake imbalance in serial_core.c

enable_irq_wake() and disable_irq_wake() need to be balanced.  However,
serial_core.c calls these for different conditions during the suspend and
resume functions...

This is causing a regular WARN_ON() as found at
http://www.kerneloops.org/search.php?search=set_irq_wake

This patch makes the conditions for triggering the _wake enable/disable
sequence identical.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/serial_core.c