Merge "ion.c: add O_CLOEXEC to /dev/ion open"
am: d91e35fb09
Change-Id: I97fcb4d10ae1a724fc24588f1ee3b0e783d40a62
This commit is contained in:
commit
84ccb2dbe0
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
int ion_open()
|
int ion_open()
|
||||||
{
|
{
|
||||||
int fd = open("/dev/ion", O_RDONLY);
|
int fd = open("/dev/ion", O_RDONLY | O_CLOEXEC);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
ALOGE("open /dev/ion failed!\n");
|
ALOGE("open /dev/ion failed!\n");
|
||||||
return fd;
|
return fd;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue