mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
workqueue: use zalloc_cpumask_var() for gcwq->mayday_mask
alloc_mayday_mask() was using alloc_cpumask_var() making gcwq->mayday_mask contain garbage after initialization on CONFIG_CPUMASK_OFFSTACK=y configurations. This combined with the previously fixed GCWQ_DISASSOCIATED initialization bug could make rescuers fall into infinite loop trying to bind to an offline cpu. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: CAI Qian <caiqian@redhat.com>
This commit is contained in:
parent
477a3c33d1
commit
9c37547ab6
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ typedef cpumask_var_t mayday_mask_t;
|
|||
cpumask_test_and_set_cpu((cpu), (mask))
|
||||
#define mayday_clear_cpu(cpu, mask) cpumask_clear_cpu((cpu), (mask))
|
||||
#define for_each_mayday_cpu(cpu, mask) for_each_cpu((cpu), (mask))
|
||||
#define alloc_mayday_mask(maskp, gfp) alloc_cpumask_var((maskp), (gfp))
|
||||
#define alloc_mayday_mask(maskp, gfp) zalloc_cpumask_var((maskp), (gfp))
|
||||
#define free_mayday_mask(mask) free_cpumask_var((mask))
|
||||
#else
|
||||
typedef unsigned long mayday_mask_t;
|
||||
|
|
Loading…
Reference in a new issue