Skip to content

Commit

Permalink
drivers/block/drbd/drbd_main.c: fix error path
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Lars Ellenberg <[email protected]>
Cc: Philipp Reisner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
nikai3d authored and Jens Axboe committed Oct 28, 2010
1 parent 51a0bb0 commit 2027ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/drbd/drbd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2027ae1

Please sign in to comment.