RE: [PATCH] drm/amdgpu: add checking to avoid null pointer without enabling powerplay

2018-11-19 Thread Huang, Ray
> -Original Message- > From: Huang Rui [mailto:ray.hu...@amd.com] > Sent: Monday, November 19, 2018 3:53 PM > To: amd-gfx@lists.freedesktop.org > Cc: Huang, Ray > Subject: [PATCH] drm/amdgpu: add checking to avoid null pointer without > enabling powerplay > > T

[PATCH] drm/amdgpu: add checking to avoid null pointer without enabling powerplay

2018-11-18 Thread Huang Rui
This patch adds the checking to avoid null pointer reference while powerplay is disbaled. Signed-off-by: Huang Rui Reviewed-by: Hawking Zhang --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_devi