drm/radeon: implement bounds checking on thermal controller lookup
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Aug 2012 17:30:49 +0000 (13:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Sep 2012 17:10:40 +0000 (13:10 -0400)
commit4755fab5fa949d68e8579eb2e7b73b8e9e75045e
treef2166c71abd55987f93cb88cf8148d37f112d0ad
parent7a083293c16bb334945fff8b33e3018fd375b33f
drm/radeon: implement bounds checking on thermal controller lookup

Don't read past the end of the array if we encounter an unknown
thermal controller.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_atombios.c