Commit 2027ae1f authored by Nicolas Kaiser's avatar Nicolas Kaiser Committed by Jens Axboe

drivers/block/drbd/drbd_main.c: fix error path

Failure to create drbd_ee_mempool appears not to get checked.  Looks like
a copy-and-paste problem to me.
Signed-off-by: default avatarNicolas Kaiser <nikai@nikai.net>
Cc: Lars Ellenberg <drbd-dev@lists.linbit.com>
Cc: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent 51a0bb0c
...@@ -2982,7 +2982,7 @@ static int drbd_create_mempools(void) ...@@ -2982,7 +2982,7 @@ static int drbd_create_mempools(void)
drbd_ee_mempool = mempool_create(number, drbd_ee_mempool = mempool_create(number,
mempool_alloc_slab, mempool_free_slab, drbd_ee_cache); mempool_alloc_slab, mempool_free_slab, drbd_ee_cache);
if (drbd_request_mempool == NULL) if (drbd_ee_mempool == NULL)
goto Enomem; goto Enomem;
/* drbd's page pool */ /* drbd's page pool */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment