[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20101024131221.1cf6e0f2@absol.kitzblitz>
Date: Sun, 24 Oct 2010 13:12:21 +0200
From: Nicolas Kaiser <nikai@...ai.net>
To: drbd-dev@...ts.linbit.com
Cc: drbd-user@...ts.linbit.com, linux-kernel@...r.kernel.org
Subject: [PATCH] block/drbd: 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@...ai.net>
---
drivers/block/drbd/drbd_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index c5dfe64..25c7a73 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)
drbd_ee_mempool = mempool_create(number,
mempool_alloc_slab, mempool_free_slab, drbd_ee_cache);
- if (drbd_request_mempool == NULL)
+ if (drbd_ee_mempool == NULL)
goto Enomem;
/* drbd's page pool */
--
1.7.2.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists