commit | a9ccf6f358d544eedc9432ca81da3d3c76b0e65a | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Thu Jan 15 16:56:41 2015 -0500 |
committer | Leon Scroggins <scroggo@google.com> | Fri Jan 16 13:15:38 2015 +0000 |
tree | 871243893f826dc738275275559e8aab4b3f6d6c | |
parent | 021b9904279c7bcd08a66a349933fc883141db34 [diff] |
Fix bugs in jmem-ashmem. If ashmem_set_prot_region fails, close the previously opened file. If mmap fails, close the file and return -1. BUG:18894965 Change-Id: I936b5c7395480249b1457e7dee566da6141fb023 (cherry picked from commit 3773c6ec2bcf603cfa2b16575022642b3e816297)