am ef923fcf
: Merge "fix GraphicBuffer::flatten crash issue when handle is null"
* commit 'ef923fcfd3db9ca1d7df48273cf9a6258aaf15c2': fix GraphicBuffer::flatten crash issue when handle is null
This commit is contained in:
commit
424b093a58
@ -235,8 +235,10 @@ status_t GraphicBuffer::flatten(void*& buffer, size_t& size, int*& fds, size_t&
|
||||
|
||||
buffer = reinterpret_cast<void*>(static_cast<int*>(buffer) + sizeNeeded);
|
||||
size -= sizeNeeded;
|
||||
fds += handle->numFds;
|
||||
count -= handle->numFds;
|
||||
if (handle) {
|
||||
fds += handle->numFds;
|
||||
count -= handle->numFds;
|
||||
}
|
||||
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user