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

Commit 7698dd97 authored by Erik Wolsheimer's avatar Erik Wolsheimer Committed by android-build-merger
Browse files

Log errno when dup fd cannot be allocated BUG: 25165471 am: 211abad3 am: b45defae

am: 529893f8

* commit '529893f8':
  Log errno when dup fd cannot be allocated BUG: 25165471
parents 812794f0 529893f8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1006,6 +1006,7 @@ static jobject Bitmap_createFromParcel(JNIEnv* env, jobject, jobject parcel) {
        // is disposed.
        int dupFd = dup(blob.fd());
        if (dupFd < 0) {
            ALOGE("Error allocating dup fd. Error:%d", errno);
            blob.release();
            SkSafeUnref(ctable);
            doThrowRE(env, "Could not allocate dup blob fd.");