[PATCH] drm/amdgpu: Move null pointer dereference check

2019-09-02 Thread Austin Kim
Null pointer dereference check should have been checked, ahead of below routine. struct amdgpu_device *adev = hwmgr->adev; With this commit, it could avoid potential NULL dereference. Signed-off-by: Austin Kim --- drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c | 5 +++-- 1 file

Re: [PATCH] drm/amdgpu: Move null pointer dereference check

2019-08-30 Thread Alex Deucher
On Fri, Aug 30, 2019 at 8:43 AM Austin Kim wrote: > > Null pointer dereference check should have been checked, > ahead of below routine. > struct amdgpu_device *adev = hwmgr->adev; > > With this commit, it could avoid potential NULL dereference. > > Signed-off-by: Austin Kim Applied.