diff options
author | Sasha Levin <sasha.levin@oracle.com> | 2014-08-06 16:08:14 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-17 09:21:54 -0700 |
commit | 0a7e596a04fa03d0ae99c71b362055f23c6417cc (patch) | |
tree | 757b706f49f5d7226b08ab3e98494b3588a45150 /kernel/smp.c | |
parent | da574914df05176343a1f610c9edf30cd70dec0e (diff) | |
download | linux-stable-0a7e596a04fa03d0ae99c71b362055f23c6417cc.tar.gz linux-stable-0a7e596a04fa03d0ae99c71b362055f23c6417cc.tar.bz2 linux-stable-0a7e596a04fa03d0ae99c71b362055f23c6417cc.zip |
kernel/smp.c:on_each_cpu_cond(): fix warning in fallback path
commit 618fde872163e782183ce574c77f1123e2be8887 upstream.
The rarely-executed memry-allocation-failed callback path generates a
WARN_ON_ONCE() when smp_call_function_single() succeeds. Presumably
it's supposed to warn on failures.
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Cc: Christoph Lameter <cl@gentwo.org>
Cc: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Tejun Heo <htejun@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/smp.c')
-rw-r--r-- | kernel/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/smp.c b/kernel/smp.c index 80c33f8de14f..86e59ee8dd76 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -661,7 +661,7 @@ void on_each_cpu_cond(bool (*cond_func)(int cpu, void *info), if (cond_func(cpu, info)) { ret = smp_call_function_single(cpu, func, info, wait); - WARN_ON_ONCE(!ret); + WARN_ON_ONCE(ret); } preempt_enable(); } |