aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorSergey Senozhatsky <[email protected]>2015-06-10 11:14:57 -0700
committerLinus Torvalds <[email protected]>2015-06-10 16:43:43 -0700
commit02f7b4145da113683ad64c74bf64605e16b71789 (patch)
treef3b5f68fdd7bf92d29e615284b28739d55abc089 /lib/memory-notifier-error-inject.c
parentf371763a79d5212c2cb216b46fa8af46ba56cee3 (diff)
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 <[email protected]> Cc: Minchan Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions