Fix electron beam crash

Under certain circumstances the ICS SurfaceFlinger attempts to disable
the hwc module by calling prepare with the list set to NULL. This code
path is specifically used by the Electron Beam screen off animation.

Since blit_reset() is just checking for a geometry change, this patch
handles the list pointer null case.

Reproducible with:
service call SurfaceFlinger 8 i32 1

(Thanks Jon & Michael!)

Change-Id: I27114b173446729511115bc73e780e7fdca8722b
Signed-off-by: Tony Lofthouse <tony.lofthouse@ti.com>
(cherry picked from commit dfe13a6b856b8443e001f9d8ce51bb05aaf03499)
1 file changed