提交 27eaa1c9 编写于 作者: N Namhyung Kim 提交者: Al Viro

aio: check return value of create_workqueue()

Signed-off-by: NNamhyung Kim <namhyung@gmail.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 274052ef
...@@ -87,7 +87,7 @@ static int __init aio_setup(void) ...@@ -87,7 +87,7 @@ static int __init aio_setup(void)
aio_wq = create_workqueue("aio"); aio_wq = create_workqueue("aio");
abe_pool = mempool_create_kmalloc_pool(1, sizeof(struct aio_batch_entry)); 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)); pr_debug("aio_setup: sizeof(struct page) = %d\n", (int)sizeof(struct page));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册