Commit 03347936 authored by ecashin@coraid.com's avatar ecashin@coraid.com Committed by Greg KH

[PATCH] aoe 5/12: don't try to free null bufpool

don't try to free null bufpool
Signed-off-by: default avatarEd L. Cashin <ecashin@coraid.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fa83c2dd
...@@ -146,6 +146,7 @@ aoedev_freedev(struct aoedev *d) ...@@ -146,6 +146,7 @@ aoedev_freedev(struct aoedev *d)
put_disk(d->gd); put_disk(d->gd);
} }
kfree(d->frames); kfree(d->frames);
if (d->bufpool)
mempool_destroy(d->bufpool); mempool_destroy(d->bufpool);
kfree(d); kfree(d);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment