summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Corey Tabaka <eieio@google.com> 2017-03-22 11:50:58 -0700
committer Corey Tabaka <eieio@google.com> 2017-03-22 11:50:58 -0700
commite71fb7d2ab1118d30c5bec8a85114ac610844dc6 (patch)
treec9748121c342c43e6463fd83a7cf84909567e086 /libs/gui/ConsumerBase.cpp
parente15bb2b16c70efa725bb0462e3c3c23cd4461fe2 (diff)
Quick fix to correctly handle empty file/channel handles.
Empty file/channel handles (value < 0) should result in a negative FileReference/ChannelReference value. The original code incorrectly interpreted the negative reference value as an error, causing errno to be returned. In most cases errno is 0, leading to confusion across the wire when the deserialization logic attempts to lookup an invalid, but non-empty reference. Bug: None Test: bufferhub_tests passes Change-Id: I664daf3cdc178fe2c4ca0c44eef35a8bb9c7310d
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions