commit | 27eaa1c90c608aa907336c2743d5ecf35c469440 | [log] [tgz] |
---|---|---|
author | Namhyung Kim <namhyung@gmail.com> | Tue Dec 14 00:06:25 2010 +0900 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon Jan 17 05:12:44 2011 -0500 |
tree | 33c8e07c5935792fc755ce6ddea660fcd84d65f1 | |
parent | 274052ef0bac011249925f6616d147b1491fc601 [diff] [blame] |
aio: check return value of create_workqueue() Signed-off-by: Namhyung Kim <namhyung@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
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 @@ 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));