[PATCH 4.20 17/92] drm/amd/powerplay: avoid possible buffer overflow