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