Sergey Senozhatsky 02f7b4145d zsmalloc: fix a null pointer dereference in destroy_handle_cache()
If zs_create_pool()->create_handle_cache()->kmem_cache_create() or
pool->name allocation fails, zs_create_pool()->destroy_handle_cache()
will dereference the NULL pool->handle_cachep.

Modify destroy_handle_cache() to avoid this.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-06-10 16:43:43 -07:00
..
2015-04-14 16:49:00 -07:00
2015-02-16 17:56:03 -08:00
2012-01-03 22:54:56 -05:00
2015-04-15 16:35:18 -07:00
2015-04-15 16:35:19 -07:00
2011-07-26 16:49:47 -07:00
2015-04-14 16:49:00 -07:00
2015-05-14 17:55:51 -07:00
2015-04-15 16:35:18 -07:00
2015-02-16 17:56:03 -08:00
2015-04-14 16:49:06 -07:00
2015-04-15 16:35:19 -07:00
2015-02-11 17:06:02 -08:00
2015-04-11 22:27:56 -04:00
2015-04-15 16:35:16 -07:00
2015-03-24 13:41:54 -04:00
2015-04-15 16:35:18 -07:00
2015-04-14 16:49:03 -07:00
2015-04-15 16:35:18 -07:00