gpu: ion: fix use-after-free in ion_heap_freelist_drain
authorMitchel Humpherys <mitchelh@codeaurora.org>
Tue, 6 Aug 2013 18:19:42 +0000 (11:19 -0700)
committerColin Cross <ccross@android.com>
Thu, 12 Dec 2013 23:27:06 +0000 (15:27 -0800)
commit9273153e861f3db897798ec0dc15f70d1aae9410
treef3e92dc612b228e4819623e9914432f58d39802d
parentb2ee33eb98bd8240787f6b3a6acffdbab40653dc
gpu: ion: fix use-after-free in ion_heap_freelist_drain

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

Change-Id: Iea3471fa7dc7535bbf0620c1639fea2008d7cf19
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
drivers/staging/android/ion/ion_heap.c