Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 110e25da authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/sde: fix null pointer dereference"

parents f3ec53af c8fffde0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -33,6 +33,10 @@ edrm_connector_get_modes(struct drm_connector *connector)
	struct drm_display_mode *m;

	m = drm_mode_duplicate(connector->dev, &edrm_conn->display->mode);
	if (m == NULL) {
		pr_err("edrm drm_mode_duplicate failed\n");
		return 0;
	}
	drm_mode_set_name(m);
	drm_mode_probed_add(connector, m);