commit | debd5cea98c0a418c24700d9c2b3f93a1fa12254 | [log] [tgz] |
---|---|---|
author | Naseer Ahmed <naseer@codeaurora.org> | Tue May 03 15:25:02 2016 -0400 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Tue Nov 01 13:49:51 2016 -0700 |
tree | d237d6475f2061558460a218dcde59e844e238ea | |
parent | 591c0a3372a29ca323c967425337a811f63c3d50 [diff] |
gralloc: Return an error if the buffer was not mapped (Second attempt at this change) In some cases, the framework attempts to lock a secure buffer. Since it does not get an error code from the lock, it proceeds to dereference the base address (which is invalid). Return an error code when a secure buffer is attempted to be locked, while still ensuring that the metadata is mapped. Bug: 28526999 Bug: 30404840 Change-Id: I6e2aaa8e9d2f28b5f5ae98fcb449d58c2f728f52 CRs-fixed: 1010697