projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ce48b3
)
workqueue: fix incorrect cpu number BUG_ON() in get_work_gcwq()
author
Tejun Heo
<tj@kernel.org>
Fri, 2 Jul 2010 08:03:51 +0000
(10:03 +0200)
committer
Tejun Heo
<tj@kernel.org>
Fri, 2 Jul 2010 08:03:51 +0000
(10:03 +0200)
get_work_gcwq() was incorrectly triggering BUG_ON() if cpu number is
equal to or higher than num_possible_cpus() instead of nr_cpu_ids.
Fix it.
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/workqueue.c
b/kernel/workqueue.c
index b59c946433f4be8c1e572eb8b5a22b34836f9121..0c485a5380990d9b2d354cbf7674cbbd36d41f97 100644
(file)
--- a/
kernel/workqueue.c
+++ b/
kernel/workqueue.c
@@
-445,7
+445,7
@@
static struct global_cwq *get_work_gcwq(struct work_struct *work)
if (cpu == NR_CPUS)
return NULL;
- BUG_ON(cpu >= n
um_possible_cpus()
);
+ BUG_ON(cpu >= n
r_cpu_ids
);
return get_gcwq(cpu);
}