drm/nouveau: fix i2ctable bounds checking
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Mon, 15 Feb 2010 22:24:49 +0000 (23:24 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 25 Feb 2010 05:09:11 +0000 (15:09 +1000)
commit761c5a69751967f4fe7430eb65b3a0ea92f3b673
tree4fef8a28592b49b047d9d17d6c9b6f77c3c42a9a
parentb762b8ce53da7c7a7a4d660878887681c86be61b
drm/nouveau: fix i2ctable bounds checking

i2c_entries seems to be the number of i2c entries,
so with index equal to this number, we could read
invalid data from i2ctable. Fix it.

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