mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
vmalloc: fix use of non-existent percpu variable in put_cpu_var()
vmalloc used non-existent percpu variable vmap_cpu_blocks instead of the intended vmap_block_queue. This went unnoticed because put_cpu_var() didn't evaluate the parameter. Fix it. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Nick Piggin <npiggin@suse.de>
This commit is contained in:
parent
dec54bf538
commit
3f04ba8595
1 changed files with 2 additions and 2 deletions
|
@ -760,7 +760,7 @@ static struct vmap_block *new_vmap_block(gfp_t gfp_mask)
|
|||
spin_lock(&vbq->lock);
|
||||
list_add(&vb->free_list, &vbq->free);
|
||||
spin_unlock(&vbq->lock);
|
||||
put_cpu_var(vmap_cpu_blocks);
|
||||
put_cpu_var(vmap_block_queue);
|
||||
|
||||
return vb;
|
||||
}
|
||||
|
@ -825,7 +825,7 @@ again:
|
|||
}
|
||||
spin_unlock(&vb->lock);
|
||||
}
|
||||
put_cpu_var(vmap_cpu_blocks);
|
||||
put_cpu_var(vmap_block_queue);
|
||||
rcu_read_unlock();
|
||||
|
||||
if (!addr) {
|
||||
|
|
Loading…
Reference in a new issue