[PATCH 5.12 251/384] drm/amdgpu: fix NULL pointer dereference