ion: chunk_heap: fix leak in allocated counter
authorColin Cross <ccross@android.com>
Fri, 13 Dec 2013 22:24:46 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:57:17 +0000 (08:57 -0800)
commitea89faff84e35c7a5b386f158b5aec0c6327441c
tree876afd6aa6b9338a65c12aadbca150bd367274b0
parentc13bd1c4eb714c08214e897fcbe51b13e0e0f279
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.

Signed-off-by: Colin Cross <ccross@android.com>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_chunk_heap.c