OSDN Git Service

Check fence is not NULL before dereferencing it
authorLynus Vaz <lvaz@codeaurora.org>
Tue, 23 Jul 2013 12:49:02 +0000 (18:19 +0530)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 3 Feb 2014 14:26:01 +0000 (22:26 +0800)
commitc3583cfd8c25a5fc579095bb79c582b04d50d816
treefa05db0c68117831d40fbbac98422975591ee049
parent95c073e7eb48225c70d80f0b9a6913b2633661ef
Check fence is not NULL before dereferencing it

If the fence obtained in dequeueBuffer is NULL, don't dereference it.
This will avoid a crash in surfaceflinger.

CRs-fixed: 516300
Change-Id: I3054dc37087103f3addae7884bb03460484a1eec
(cherry picked from commit ddf4adb487dc76ccb75fe2432772d6fc575ed77c)
(cherry picked from commit c6ae5271f9ced9a747e1481c2ef875ba03674172)
(cherry picked from commit cdad709878601eb694acbce7d3ae9f7a74bf14f3)
libs/gui/Surface.cpp