]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
stop_machine: fix race with return value (fixes Bug #11989)
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 16 Nov 2008 21:52:18 +0000 (08:22 +1030)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 16 Nov 2008 23:09:52 +0000 (15:09 -0800)
commite14c8bf86350f6c39186a139c5c584a6111b2f01
treec1e0b08fc5b8efff001aecf5e6fb803423bd1c71
parent5c06fe772da43db63b053addcd2c267f76d0be91
stop_machine: fix race with return value (fixes Bug #11989)

Bug #11989: Suspend failure on NForce4-based boards due to chanes in
stop_machine

We should not access active.fnret outside the lock; in theory the next
stop_machine could overwrite it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Tested-by: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/stop_machine.c