commit | 847650b5d89a1667f78fa0fa67429377cd3bf37a | [log] [tgz] |
---|---|---|
author | Naseer Ahmed <naseer@codeaurora.org> | Fri Jun 17 11:14:25 2016 -0400 |
committer | Dan Stoza <stoza@google.com> | Fri Jan 06 15:18:19 2017 -0800 |
tree | b8ec9b905822370e6b524b01049cd05885feb143 | |
parent | dfb2b9bda6eba216ada854241b25f281b833a83b [diff] |
HWC2: Initialize retire fence to -1 Initializing to zero will cause us to inadvertently close fd 0. While fd 0 (stdout) isn't used in the surfaceflinger process, if we close it, the fd becomes available for other usages, such as fences and ion buffers. Using it becomes problematic for some drivers which may treat it as an invalid value. Bug: 28640429 Test: Fixes GPU driver seeing fd of 0 and erroring Change-Id: Ifa06472d24476edb27a4306d946eb616a15aee7a