ion: chunk_heap: fix leak in allocated counter
authorColin Cross <ccross@android.com>
Wed, 14 Aug 2013 21:03:55 +0000 (14:03 -0700)
committerColin Cross <ccross@android.com>
Fri, 20 Sep 2013 04:03:30 +0000 (23:03 -0500)
commitf526a55b400d166dafc6062e5818a2410555ef39
treed815480a10e21ce5bc58fefcb297709d69b4b976
parent6ebfe5864ae65ad31e1e5526f0f45a5f735c9a5b
ion: chunk_heap: fix leak in allocated counter

buffer->size is controlled by the outer ion layer, don't modify it
inside the heap.  Instead, compute the rounded up allocated size
on demand.

Change-Id: I288ffc1221ce96cfe2591468502ac3279065bde4
Signed-off-by: Colin Cross <ccross@android.com>
drivers/gpu/ion/ion_chunk_heap.c