Skip to content
Commit 1e6dd8ad authored by Dan Carpenter's avatar Dan Carpenter Committed by Ingo Molnar
Browse files

perf: Fix off by one test in perf_reg_value()



The test should be >= ARRAY_SIZE() instead of > ARRAY_SIZE().

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarJiri Olsa <jolsa@redhat.com>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: http://lkml.kernel.org/r/20120905123126.GC6128@elgon.mountain


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent d0616c17
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