mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-10-04 08:02:24 +00:00
[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>
This commit is contained in:
parent
fa83c2ddd4
commit
03347936af
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user