From 03347936afcba990525736ae39daa13f643eac5f Mon Sep 17 00:00:00 2001 From: "ecashin@coraid.com" Date: Mon, 18 Apr 2005 22:00:19 -0700 Subject: [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 --- drivers/block/aoe/aoedev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c index a40a78a7f44..ec16c64dd11 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); } -- cgit v1.2.3-70-g09d2