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

Commit 6ec659d3 authored by Elliott Hughes's avatar Elliott Hughes Committed by Android (Google) Code Review
Browse files

Merge "__ashmem_open_locked(): log on every exit path." into main

parents 4ed6978b 577b9fa6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -184,9 +184,11 @@ static int __ashmem_open_locked() {

    struct stat st;
    if (TEMP_FAILURE_RETRY(fstat(fd, &st)) == -1) {
        ALOGE("Unable to fstat ashmem device: %m");
        return -1;
    }
    if (!S_ISCHR(st.st_mode) || !st.st_rdev) {
        ALOGE("ashmem device is not a character device");
        errno = ENOTTY;
        return -1;
    }