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

Commit 577b9fa6 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

__ashmem_open_locked(): log on every exit path.

Bug: https://issuetracker.google.com/409422661
Change-Id: Ia8297da895be97ee533b48372f899fe848cca90c
parent 33b0992e
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;
    }