Fix cts android.app.uiautomation.cts.UiAutomationTest#testWindowContentFrameStats fail.
This case check fence getSignalTime, which is get from fence->timestamp.
If use kmalloc, timestamp value is not guaranteed and can't be updated during fence_signal.
Date: Jul 17, 2017
Signed-off-by: juan.hao <juan.hao@nxp.com>
struct fence *old_fence = NULL;
unsigned seqno;
- fence = kmalloc(sizeof(struct viv_fence), gcdNOWARN | GFP_KERNEL);
+ fence = kzalloc(sizeof(struct viv_fence), gcdNOWARN | GFP_KERNEL);
if (!fence)
return NULL;