CPU: Avoid using unititialized error variable in disable_nonboot_cpus()
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 27 May 2010 20:16:22 +0000 (22:16 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 30 May 2010 16:06:00 +0000 (09:06 -0700)
commite9a5f426b85e429bffaee4e0b086b1e742a39fa6
tree65ba763309c5d771c1f179af5b36fce996742b1c
parent97ef6f7449da6ceddf9a90fa8851f607b67283dd
CPU: Avoid using unititialized error variable in disable_nonboot_cpus()

If there's only one CPU online when disable_nonboot_cpus() is called,
the error variable will not be initialized and that may lead to
erroneous behavior.  Fix this issue by initializing error in
disable_nonboot_cpus() as appropriate.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cpu.c