percpu: off by one in BUG_ON()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 29 Oct 2014 08:45:04 +0000 (11:45 +0300)
committerTejun Heo <tj@kernel.org>
Wed, 29 Oct 2014 14:34:34 +0000 (10:34 -0400)
commit9f295664e2f2cdf53c596f74bcf3f644cae9fecc
tree31e986db37787dcc9758a68fd30261bd7adebd21
parentcac7f2429872d3733dc3f9915857b1691da2eb2f
percpu: off by one in BUG_ON()

The unit_map[] array has "nr_cpu_ids" number of elements.  It's
allocated a few lines earlier in the function.  So this test should be
>= instead of >.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu.c