[PATCH 5.10 152/509] drm/amdkfd: Fix potential deallocation of previously deallocated memory.