]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: add powerplay valid check to avoid null point.
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 29 Dec 2015 05:56:03 +0000 (13:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Feb 2016 21:21:12 +0000 (16:21 -0500)
commita9659b6a58fe5c024c45e2a8d9ccd3100df166b1
tree46383ee0d7692f314978b453dca43966c3d2a038
parente779fc9dbd8d1e31b9560c6abc410651a9f27bab
drm/amd/powerplay: add powerplay valid check to avoid null point.

In case CONFIG_DRM_AMD_POWERPLAY is defined and amdgpu.powerplay=0.
some functions in powrplay can also be called by DAL. and the input parameter is *adev.
if just check point not NULL was not enough and will lead to NULL point error.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amd_powerplay.c