Skip to contentSkip to conversation

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

PATCH In review [email protected] 3 participants 3 messages Oct 27, 2010 – Oct 28, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

From: Nicolas Kaiser <[email protected]>

Failure to create drbd_ee_mempool appears not to get checked. Looks like a copy-and-paste problem to me.

Cc Lars Ellenberg <[email protected]>
Cc Philipp Reisner <[email protected]>
Cc Jens Axboe <[email protected]>

---

 drivers/block/drbd/drbd_main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/drbd/drbd_main.c renamed from drivers/block/drbd/drbd_main.c~drivers-block-drbd-drbd_mainc-fix-error-path +1 -1
diff -puN drivers/block/drbd/drbd_main.c~drivers-block-drbd-drbd_mainc-fix-error-path 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 */

_

maintainer
#1 lore raw

Hi Jens,

The patch is obviously correct.
Should I pick it up (and send you a pull req (later))? Are you going to pick it up directly?

Best,
Phil

Quoted 30 lines

From: Nicolas Kaiser <[email protected]>

Failure to create drbd_ee_mempool appears not to get checked. Looks like a copy-and-paste problem to me.

Cc Lars Ellenberg <[email protected]>
Cc Philipp Reisner <[email protected]>
Cc Jens Axboe <[email protected]>

---

 drivers/block/drbd/drbd_main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/block/drbd/drbd_main.c~drivers-block-drbd-drbd_mainc-fix-error-pat h drivers/block/drbd/drbd_main.c --- a/drivers/block/drbd/drbd_main.c~drivers-block-drbd-drbd_mainc-fix-error-p ath +++ a/drivers/block/drbd/drbd_main.c

drivers/block/drbd/drbd_main.c renamed from drivers/block/drbd/drbd_main.c~drivers-block-drbd-drbd_mainc-fix-error-path +1 -1
@@ -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 */

_

Signature · 6 lines
: Dipl-Ing Philipp Reisner
: LINBIT | Your Way to High Availability
: Tel: +43-1-8178292-50, Fax: +43-1-8178292-82
: http://www.linbit.com

DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
maintainer
#2 lore raw
Quoted 5 lines · Philipp Reisner

Hi Jens,

The patch is obviously correct.
Should I pick it up (and send you a pull req (later))? Are you going to pick it up directly?

I am merging it now.

Signature · 1 line
Jens Axboe