[PATCH 6.1 028/149] drm/amdgpu: fix possible UAF in amdgpu_cs_pass1()