Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d91e35fb authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents b675f7cd 6b694a76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;