[PATCH openEuler-5.10 01/31] drm/amdkfd: Check for null pointer after calling kmemdup