staging: android: ashmem.c: destroy slabs when init fails
authorWenwei Tao <ww.tao0320@gmail.com>
Tue, 8 Dec 2015 16:15:52 +0000 (00:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:37:53 +0000 (13:37 -0800)
commita2df4e33d71ff819c9afcdf34392030cee349f47
treeb5f23fab3c98ec4c4247f8d718e360e4a08f0941
parent59dfafd03fc67d38307d2ba30bbfdd1224b8a75d
staging: android: ashmem.c: destroy slabs when init fails

when ashmem init fails, destroy the slabs, leave
no garbage.

Signed-off-by: Wenwei Tao <ww.tao0320@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ashmem.c