OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9887e2d
)
drm/exynos: propagate plane initialization errors
author
Andrzej Hajda
<a.hajda@samsung.com>
Fri, 10 Oct 2014 12:31:53 +0000
(14:31 +0200)
committer
Inki Dae
<daeinki@gmail.com>
Sun, 2 Nov 2014 16:51:28 +0000
(
01:51
+0900)
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>
drivers/gpu/drm/exynos/exynos_drm_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/exynos/exynos_drm_drv.c
b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index
510d7cb
..
23fbad5
100644
(file)
--- a/
drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/
drivers/gpu/drm/exynos/exynos_drm_drv.c
@@
-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 */