diff options
| author | 2019-07-31 12:29:31 -0200 | |
|---|---|---|
| committer | 2019-07-31 13:20:59 -0200 | |
| commit | c60c4fcd56cb6b08894a447d0ea6e8a8e6a83148 (patch) | |
| tree | 6ef751594a782ca78e1735d704a3c36469601222 /libs/gui/ConsumerBase.cpp | |
| parent | 5667bea3fc4d73d19e1e0bc7da3d08305c1b287d (diff) | |
Fix FD comparisons in binder
Even though 0 is a valid file descriptor (FD),
all checks made using it as error.
When a user space process is started by the kernel,
there are no FD open.
The first one to be opened is 0. If this process used binder,
then its connection would be dropped due to the checks mentioned
previously.
This issue is fixed by changing the comparisons to allow a FD 0.
This change was created by Alexandre while he was an employee of
Samsung Electronics (SRBR). He is no longer part of the staff.
On behalf of Samsung Electronics (SRBR).
BUG: 122699850
Test: Called test binary from kernel and ensured connection
to libbinder is not dropped.
Change-Id: I588ec8c4c1ba130ea2d5d61d94dea66838e4aa1d
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions