Unverified Commit 72d971db authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10982 drm/gma500: fix null pointer dereference in cdv_intel_lvds_get_modes

parents 72870c57 1294bf67
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -310,6 +310,9 @@ static int cdv_intel_lvds_get_modes(struct drm_connector *connector)
	if (mode_dev->panel_fixed_mode != NULL) {
		struct drm_display_mode *mode =
		    drm_mode_duplicate(dev, mode_dev->panel_fixed_mode);
		if (!mode)
			return 0;

		drm_mode_probed_add(connector, mode);
		return 1;
	}