aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-05-10 11:28:26 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-05-10 11:28:26 -0400
commitd40cd1dab21fec804f6c852a6b2dc94416907379 (patch)
tree6c919b593d1263b2814c1784771f74468d686f0d /src/lib/ecore_drm
parentadd work email id into AUTHORS (diff)
downloadefl-d40cd1dab21fec804f6c852a6b2dc94416907379.tar.gz
ecore-drm: Fix potential segfault when setting output mode
If a NULL mode is passed into ecore_drm_output_mode_set, then we try to disable the given output. If disabling the output fails, we were trying to print an ERR message which tried to access the NULL mode. @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_drm')
-rw-r--r--src/lib/ecore_drm/ecore_drm_output.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c
index d5bb43cc89..526e0113cd 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -1503,8 +1503,7 @@ ecore_drm_output_mode_set(Ecore_Drm_Output *output, Ecore_Drm_Output_Mode *mode,
if (drmModeSetCrtc(dev->drm.fd, output->crtc_id,
0, 0, 0, 0, 0, NULL) < 0)
{
- ERR("Failed to set Mode %dx%d for Output %s: %m",
- mode->width, mode->height, output->name);
+ ERR("Failed to turn off Output %s: %m", output->name);
ret = EINA_FALSE;
}
}