Commit 3f04ba859597412afbfb31f2fcbe289f2461f9a1

Authored by Tejun Heo
1 parent dec54bf538

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -760,7 +760,7 @@
760 760 spin_lock(&vbq->lock);
761 761 list_add(&vb->free_list, &vbq->free);
762 762 spin_unlock(&vbq->lock);
763   - put_cpu_var(vmap_cpu_blocks);
  763 + put_cpu_var(vmap_block_queue);
764 764  
765 765 return vb;
766 766 }
... ... @@ -825,7 +825,7 @@
825 825 }
826 826 spin_unlock(&vb->lock);
827 827 }
828   - put_cpu_var(vmap_cpu_blocks);
  828 + put_cpu_var(vmap_block_queue);
829 829 rcu_read_unlock();
830 830  
831 831 if (!addr) {