Skip to content

Commit

Permalink
aio: check return value of create_workqueue()
Browse files Browse the repository at this point in the history
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Namhyung Kim authored and Al Viro committed Jan 17, 2011
1 parent 274052e commit 27eaa1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/aio.c
Original file line number Diff line number Diff line change
@@ -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));

0 comments on commit 27eaa1c

Please sign in to comment.