drm/amdgpu: Fix a buffer overflow handling the serial number