]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] cpu hotplug: fix CPU_UP_CANCEL handling
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sun, 25 Jun 2006 12:49:10 +0000 (05:49 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:22 +0000 (10:01 -0700)
commitfc75cdfa5b43ac4d3232b490800cd35063adafd3
tree0529ffd9633667457d5340a09b3cb352d09436d2
parent04a3446c90137a473837288b04b517b19dc67a0d
[PATCH] cpu hotplug: fix CPU_UP_CANCEL handling

If a cpu hotplug callback fails on CPU_UP_PREPARE, all callbacks will be
called with CPU_UP_CANCELED.  A few of these callbacks assume that on
CPU_UP_PREPARE a pointer to task has been stored in a percpu array.  This
assumption is not true if CPU_UP_PREPARE fails and the following calls to
kthread_bind() in CPU_UP_CANCELED will cause an addressing exception
because of passing a NULL pointer.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sched.c
kernel/softirq.c
kernel/softlockup.c
kernel/workqueue.c