]> git.karo-electronics.de Git - linux-beck.git/commit
drm/amd/powerplay: revise caching the soft pptable and add it's size
authorEric Huang <JinHuiEric.Huang@amd.com>
Fri, 15 Apr 2016 19:02:54 +0000 (15:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2016 00:29:52 +0000 (20:29 -0400)
commit1551019523a01f477888835b9ed363d3a2e73d7b
tree9fe18d674b1737d7f377e04a635681281bed5e87
parent5632708f4452eb9afb985b245b98dac9a5feeac2
drm/amd/powerplay: revise caching the soft pptable and add it's size

This fixes a bug in the pptable access interface that could lead to
a crash.  Check the pointer before using it.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_processpptables.c
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h