X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fcpu.c;h=10ba5f1004a5646bd9960bbe2156291edcb09fb0;hb=0ccd58fc03f40529f66190b1a41e92a732d2bda8;hp=2cc409ce0a8f93012ff93432f4effe6884b0b01c;hpb=ecc8b655b38a880b578146895e0e1e2d477ca2c0;p=linux-2.6 diff --git a/kernel/cpu.c b/kernel/cpu.c index 2cc409ce0a..10ba5f1004 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -285,6 +285,11 @@ out_allowed: set_cpus_allowed_ptr(current, &old_allowed); out_release: cpu_hotplug_done(); + if (!err) { + if (raw_notifier_call_chain(&cpu_chain, CPU_POST_DEAD | mod, + hcpu) == NOTIFY_BAD) + BUG(); + } return err; }