radv: fix check for perftest options size

It was using the debug options array size.

CC: mesa-stable@lists.freedesktop.org
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
(cherry picked from commit e71a87775e)
This commit is contained in:
Andres Rodriguez 2018-10-18 15:32:31 -04:00 committed by Juan A. Suarez Romero
parent 8da28e563b
commit 8c4ff233b1

View file

@ -484,7 +484,7 @@ static const struct debug_control radv_perftest_options[] = {
const char *
radv_get_perftest_option_name(int id)
{
assert(id < ARRAY_SIZE(radv_debug_options) - 1);
assert(id < ARRAY_SIZE(radv_perftest_options) - 1);
return radv_perftest_options[id].string;
}