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

Commit 6b694a76 authored by Nick Kralevich's avatar Nick Kralevich
Browse files

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

Test: device boots and no obvious problems.
Change-Id: I0845b79de49b77878adaf6cd14cc506f7586cccb
parent 9bfd9f55
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;