ecore-drm2: Fix potential SIGFPE when adding output mode
authorChris Michael <cp.michael@samsung.com>
Thu, 8 Jun 2017 14:34:29 +0000 (10:34 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 8 Jun 2017 14:34:29 +0000 (10:34 -0400)
commit0ecf044080553da8ae149278cd4cc957ed8d559b
treeb250e5e9c011759b411313747b919dddf161d8d2
parentb7c7ce4ce0a6a6f87decdfc79cd53aa80bb13497
ecore-drm2: Fix potential SIGFPE when adding output mode

If we receive bad crtc info from libdrm, then we could end up with a
SIGFPE here due to division by zero if info h/v total are not set.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm2/ecore_drm2_outputs.c