summaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe
diff options
context:
space:
mode:
authorecashin@coraid.com <ecashin@coraid.com>2005-04-19 07:00:19 +0200
committerGreg KH <greg@press.kroah.org>2005-04-19 07:00:19 +0200
commit03347936afcba990525736ae39daa13f643eac5f (patch)
treecaee9292bd519aa195b8150c1bac9cd94bb17e72 /drivers/block/aoe
parent[PATCH] aoe 4/12: handle distros that have a udev rules (diff)
downloadlinux-03347936afcba990525736ae39daa13f643eac5f.tar.xz
linux-03347936afcba990525736ae39daa13f643eac5f.zip
[PATCH] aoe 5/12: don't try to free null bufpool
don't try to free null bufpool Signed-off-by: Ed L. Cashin <ecashin@coraid.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/block/aoe')
-rw-r--r--drivers/block/aoe/aoedev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c
index a40a78a7f44a..ec16c64dd114 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);
}