From: ecashin@coraid.com Date: Tue, 19 Apr 2005 05:00:19 +0000 (-0700) Subject: [PATCH] aoe 5/12: don't try to free null bufpool X-Git-Tag: v2.6.12-rc3~24^2~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03347936afcba990525736ae39daa13f643eac5f;p=linux-2.6 [PATCH] aoe 5/12: don't try to free null bufpool don't try to free null bufpool Signed-off-by: Ed L. Cashin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c index a40a78a7f4..ec16c64dd1 100644 --- a/drivers/block/aoe/aoedev.c +++ b/drivers/block/aoe/aoedev.c @@ -146,7 +146,8 @@ aoedev_freedev(struct aoedev *d) put_disk(d->gd); } kfree(d->frames); - mempool_destroy(d->bufpool); + if (d->bufpool) + mempool_destroy(d->bufpool); kfree(d); }