summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Erik Wolsheimer <ewol@google.com> 2015-11-16 19:03:53 +0000
committer android-build-merger <android-build-merger@google.com> 2015-11-16 19:03:53 +0000
commit2fba776ee0227e54f750dc6b87c8ca1bc1fd556f (patch)
tree04eaf339798d013ced420b05a2e0f60cfd921eaf
parent45f88d02deb8b78f72b7315b5d42567639ad7ece (diff)
parentb45defae8e61a4fa3aba9dd08480861d10f5982a (diff)
Log errno when dup fd cannot be allocated BUG: 25165471 am: 211abad3b9
am: b45defae8e * commit 'b45defae8e61a4fa3aba9dd08480861d10f5982a': Log errno when dup fd cannot be allocated BUG: 25165471
-rwxr-xr-xcore/jni/android/graphics/Bitmap.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/jni/android/graphics/Bitmap.cpp b/core/jni/android/graphics/Bitmap.cpp
index 703a9bd2fcd5..a805b6d1d151 100755
--- a/core/jni/android/graphics/Bitmap.cpp
+++ b/core/jni/android/graphics/Bitmap.cpp
@@ -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.");