aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorNicolas Kaiser <nikai@nikai.net>2010-10-28 08:15:26 -0400
committerJens Axboe <jaxboe@fusionio.com>2010-10-28 08:15:26 -0400
commit2027ae1fa914640c287171035cb607a03ad36e95 (patch)
treeb691a7cd20b2fe1b6736f5a02497a9fc7f897a19 /drivers/block
parent51a0bb0c2e614659132fce272c8a1815a12c5c2a (diff)
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: Nicolas Kaiser <nikai@nikai.net> Cc: Lars Ellenberg <drbd-dev@lists.linbit.com> Cc: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/drbd/drbd_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index c5dfe6486cf3..25c7a73c5062 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -2982,7 +2982,7 @@ static int drbd_create_mempools(void)
2982 2982
2983 drbd_ee_mempool = mempool_create(number, 2983 drbd_ee_mempool = mempool_create(number,
2984 mempool_alloc_slab, mempool_free_slab, drbd_ee_cache); 2984 mempool_alloc_slab, mempool_free_slab, drbd_ee_cache);
2985 if (drbd_request_mempool == NULL) 2985 if (drbd_ee_mempool == NULL)
2986 goto Enomem; 2986 goto Enomem;
2987 2987
2988 /* drbd's page pool */ 2988 /* drbd's page pool */