Skip to content
Commit a92d3ff9 authored by Pavel V. Panteleev's avatar Pavel V. Panteleev Committed by Tejun Heo
Browse files

percpu: fix trivial bugs in pcpu_build_alloc_info()



Fix the following two trivial bugs in pcpu_build_alloc_info()

* we should memset group_cnt to 0 by size of group_cnt, not size of
  group_map (both are of the same size, so the bug isn't dangerous)

* we can delete useless variable group_cnt_max.

Signed-off-by: default avatarPavel V. Panteleev <pp_84@mail.ru>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 7e27d6e7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment