diff options
author | ecashin@coraid.com <ecashin@coraid.com> | 2005-04-19 01:00:19 -0400 |
---|---|---|
committer | Greg KH <greg@press.kroah.org> | 2005-04-19 01:00:19 -0400 |
commit | 03347936afcba990525736ae39daa13f643eac5f (patch) | |
tree | caee9292bd519aa195b8150c1bac9cd94bb17e72 /drivers/block | |
parent | fa83c2ddd4293bd8bcaeeaf14bfdbf2fbe810420 (diff) |
[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')
-rw-r--r-- | drivers/block/aoe/aoedev.c | 3 |
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) | |||
146 | put_disk(d->gd); | 146 | put_disk(d->gd); |
147 | } | 147 | } |
148 | kfree(d->frames); | 148 | kfree(d->frames); |
149 | mempool_destroy(d->bufpool); | 149 | if (d->bufpool) |
150 | mempool_destroy(d->bufpool); | ||
150 | kfree(d); | 151 | kfree(d); |
151 | } | 152 | } |
152 | 153 | ||