Commit [9e506f]  Maximize  Restore  History

kernel/: fix BUG_ON checks for cpu notifier callbacks direct call

The commit 80b5184cc537718122e036afe7e62d202b70d077 ("kernel/: convert cpu
notifier to return encapsulate errno value") changed the return value of
cpu notifier callbacks.

Those callbacks don't return NOTIFY_BAD on failures anymore. But there
are a few callbacks which are called directly at init time and checking
the return value.

I forgot to change BUG_ON checking by the direct callers in the commit.

Signed-off-by: Akinobu Mita <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>

Akinobu Mita Akinobu Mita 2010-06-04

Linus Torvalds Linus Torvalds 2010-06-04

changed kernel
changed kernel/softirq.c
changed kernel/timer.c
kernel/softirq.c Diff Switch to side-by-side view
kernel/timer.c Diff Switch to side-by-side view