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 20:48:14 +0000 (13:48 -0700)
commit22d9af8fbdb154769a9802127d81f61077bf649b
tree6756f427adeb70db3a2a826f50812489e7ee2f93
parent0c98574b6a4bdcf84b6b61804cb1f68fb1d390a4
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