drm/nouveau: fix pramdac_table range checking
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Wed, 17 Feb 2010 18:04:00 +0000 (19:04 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 25 Feb 2010 05:09:07 +0000 (15:09 +1000)
commitdf31ef4dbd48eca2772d8d88b12ee5eb5117c86e
treea557c4b12dbac70cac62609f8bab24986e165869
parenta1606a9596e54da90ad6209071b357a4c1b0fa82
drm/nouveau: fix pramdac_table range checking

get_tmds_index_reg reads some value from stack when mlv happens
to be equal to size of pramdac_table array. Fix it.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bios.c