[PATCH 6.1.y] drm/amdgpu: fix use-after-free bug