drm/amdgpu/df: fix potential array out-of-bounds read