Skip to content

Commit

Permalink
drm/exynos: propagate plane initialization errors
Browse files Browse the repository at this point in the history
In case of error during plane initialization load callback
incorrectly return success, this patch fixes it.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
  • Loading branch information
Andrzej Hajda authored and Inki Dae committed Nov 2, 2014
1 parent 9887e2d commit 64f7aed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/gpu/drm/exynos/exynos_drm_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ 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))
goto err_mode_config_cleanup;
if (!IS_ERR(plane))
continue;

ret = PTR_ERR(plane);
goto err_mode_config_cleanup;
}

/* init kms poll for handling hpd */
Expand Down

0 comments on commit 64f7aed

Please sign in to comment.