r200: Avoid out of bounds array access.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
e5eaf8ec60
commit
2eef9c0b16
|
@ -622,7 +622,7 @@ static void init_regs( void )
|
|||
struct reg_names *tmp;
|
||||
int i;
|
||||
|
||||
for (i = 0 ; i < Elements(regs) ; i++) {
|
||||
for (i = 0 ; i < Elements(reg_names) ; i++) {
|
||||
regs[i].idx = reg_names[i].idx;
|
||||
regs[i].closest = ®_names[i];
|
||||
regs[i].flags = 0;
|
||||
|
|
Loading…
Reference in New Issue