drm/amdgpu: Use kmemdup rather than duplicating its implementation