提交 03347936 编写于 作者: E ecashin@coraid.com 提交者: Greg KH

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

don't try to free null bufpool
Signed-off-by: NEd L. Cashin <ecashin@coraid.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 fa83c2dd
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册