drm/radeon: fix handling of v6 power tables
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 1 May 2013 18:34:54 +0000 (14:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 May 2013 14:18:36 +0000 (07:18 -0700)
commitf2bc8219dfb84879ea44b0e44c3590a4449065bd
tree1a274b196d003aec745a47d80fd0cf8bb9007974
parent0496ac0e46866ec684e2eb105033f4b03b7016a0
drm/radeon: fix handling of v6 power tables

commit 441e76ca83ac604eaf0f046def96d8e3a27eea28 upstream.

The code was mis-handling variable sized arrays.

Reported-by: Sylvain BERTRAND <sylware@legeek.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_atombios.c