OSDN Git Service

gralloc: Fix division-by-0 during system emulation.
authorDavid 'Digit' Turner <digit@google.com>
Sat, 15 Jan 2011 20:06:12 +0000 (21:06 +0100)
committerDavid 'Digit' Turner <digit@google.com>
Sat, 15 Jan 2011 20:06:12 +0000 (21:06 +0100)
commit80d3699c9e8e18d57684f3b20d58fd259379a9d2
tree957d926b3683f7e218b3be399a7e4b6778b6de81
parent3cceaceecac1e76244153940b8855ad1bbdd1037
gralloc: Fix division-by-0 during system emulation.

This patch avoids a division-by-0 when the system is running
under emulation (the kernel driver reports pixclock as 0, for
some reason). Which results in a SIGFPE during the boot sequence.

Change-Id: Idb6bcdd58999ea9231f2411481c25929d5d02f1d
modules/gralloc/framebuffer.cpp