gpu: ion: fix kfree/list_del order
authorJP Abgrall <jpa@google.com>
Fri, 13 Dec 2013 22:24:36 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:41 +0000 (08:55 -0800)
commite09539a04285b616ebcc50f2f6b75ad7fbb0aec5
treed9c74187499fdd27192a918875fbc6d299af4e63
parentfe2faea7003516dd615812f663b6a9b141b842ce
gpu: ion: fix kfree/list_del order

With CONFIG_SLUB_DEBUG_ON it would panic during
ion_alloc()
 ion_buffer_create()
   io_heap_drain_freelist()

Signed-off-by: JP Abgrall <jpa@google.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.c