gpu: ion: fix use-after-free in ion_heap_freelist_drain
authorMitchel Humpherys <mitchelh@codeaurora.org>
Sat, 14 Dec 2013 03:26:17 +0000 (19:26 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:57:19 +0000 (08:57 -0800)
commitf020b4430bf29a25229fd9975662baefb02facda
tree747fc8ec70951e048422fccb0f2bd74a103351fe
parentdb866e3ded294aac1059d45d6497cf1bdbebaa04
gpu: ion: fix use-after-free in ion_heap_freelist_drain

The `buffer' variable is being used after being freed. Fix this.

Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_heap.c