From: Namhyung Kim Date: Mon, 13 Dec 2010 15:06:25 +0000 (+0900) Subject: aio: check return value of create_workqueue() X-Git-Tag: v2.6.38-rc1~22^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27eaa1c90c608aa907336c2743d5ecf35c469440;p=platform%2Fkernel%2Flinux-3.10.git aio: check return value of create_workqueue() Signed-off-by: Namhyung Kim Signed-off-by: Al Viro --- diff --git a/fs/aio.c b/fs/aio.c index 5e00f15..fc557a3 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -87,7 +87,7 @@ static int __init aio_setup(void) aio_wq = create_workqueue("aio"); abe_pool = mempool_create_kmalloc_pool(1, sizeof(struct aio_batch_entry)); - BUG_ON(!abe_pool); + BUG_ON(!aio_wq || !abe_pool); pr_debug("aio_setup: sizeof(struct page) = %d\n", (int)sizeof(struct page));