[PATCH AUTOSEL 4.14 28/31] drm/amdgpu: fix NULL pointer dereference