drm/radeon/kms/atom: fix gpio i2c table overrun (v2)
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 1 Apr 2010 19:08:47 +0000 (19:08 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 5 Apr 2010 23:59:31 +0000 (09:59 +1000)
commit95beb690170e6ce918fe53c73a0fcc7cf64d704a
tree1cca4412c25bf1ef69409d1ddeccbc2e21bccc66
parent57b54ea6b7863ccfeb41851b5f58f9fd1b83c79e
drm/radeon/kms/atom: fix gpio i2c table overrun (v2)

The GPIO_I2C_INFO table does not always have
ATOM_MAX_SUPPORTED_DEVICE entries. Limit
the number of indices to the size of the
table.

Should fix Novell bug 589022.

v2: fix typo

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: Stable <stable@kernel.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_atombios.c