diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-12-13 16:06:25 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-01-17 11:12:44 +0100 |
commit | 27eaa1c90c608aa907336c2743d5ecf35c469440 (patch) | |
tree | 33c8e07c5935792fc755ce6ddea660fcd84d65f1 /fs/aio.c | |
parent | hpfs_setattr error case avoids unlock_kernel (diff) | |
download | linux-27eaa1c90c608aa907336c2743d5ecf35c469440.tar.xz linux-27eaa1c90c608aa907336c2743d5ecf35c469440.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | fs/aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |