[PATCH openEuler-5.10 260/557] drm/amd/display: Fix a NULL pointer dereference in amdgpu_dm_connector_add_common_modes()