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

Commit 64f7aed8 authored by Andrzej Hajda's avatar Andrzej Hajda Committed by Inki Dae
Browse files

drm/exynos: propagate plane initialization errors



In case of error during plane initialization load callback
incorrectly return success, this patch fixes it.

Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 9887e2d9
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -87,7 +87,10 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)

		plane = exynos_plane_init(dev, possible_crtcs,
					  DRM_PLANE_TYPE_OVERLAY);
		if (IS_ERR(plane))
		if (!IS_ERR(plane))
			continue;

		ret = PTR_ERR(plane);
		goto err_mode_config_cleanup;
	}