drm/nouveau: off by one in init_i2c_device_find()
authorDan Carpenter <error27@gmail.com>
Tue, 25 May 2010 09:52:27 +0000 (11:52 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 8 Jun 2010 01:03:38 +0000 (11:03 +1000)
commit75047944480a33afad76a272b21116d032ba61fa
tree87a33c22e8fce4ca7d12cbafd501d681b372caba
parent55a4c5c515c1f4b4bde00c443e71ff9f3822013e
drm/nouveau: off by one in init_i2c_device_find()

dcb->i2c[] has DCB_MAX_NUM_I2C_ENTRIES entries.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bios.c