[PATCH 4.9 045/240] drm/amdgpu: fix NULL pointer dereference