Merge "ion.c: add O_CLOEXEC to /dev/ion open"

This commit is contained in:
Treehugger Robot 2016-11-30 07:54:47 +00:00 committed by Gerrit Code Review
commit d91e35fb09

View file

@ -34,7 +34,7 @@
int ion_open()
{
int fd = open("/dev/ion", O_RDONLY);
int fd = open("/dev/ion", O_RDONLY | O_CLOEXEC);
if (fd < 0)
ALOGE("open /dev/ion failed!\n");
return fd;