From: Andrew Morton <a...@linux-foundation.org> commit 441e254cd40dc03beec3c650ce6ce6074bc6517f upstream.
Fixes: 701d678599d0c1 ("mm/zsmalloc.c: fix race condition in zs_destroy_pool") Link: http://lkml.kernel.org/r/201908251039.5osbeeut%25...@intel.com Reported-by: kbuild test robot <l...@intel.com> Cc: Sergey Senozhatsky <sergey.senozhat...@gmail.com> Cc: Henry Burns <henrywolfebu...@gmail.com> Cc: Minchan Kim <minc...@kernel.org> Cc: Shakeel Butt <shake...@google.com> Cc: Jonathan Adams <jwad...@google.com> Signed-off-by: Andrew Morton <a...@linux-foundation.org> Signed-off-by: Linus Torvalds <torva...@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> --- mm/zsmalloc.c | 2 ++ 1 file changed, 2 insertions(+) --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -2431,7 +2431,9 @@ struct zs_pool *zs_create_pool(const cha if (!pool->name) goto err; +#ifdef CONFIG_COMPACTION init_waitqueue_head(&pool->migration_wait); +#endif if (create_cache(pool)) goto err;