[PATCH openEuler-22.03-LTS-SP1] drm/amd/display: Check gpio_id before used as array index