[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>


authored by ecashin@coraid.com and committed by Greg KH 03347936 fa83c2dd

+2 -1
+2 -1
drivers/block/aoe/aoedev.c
··· 146 146 put_disk(d->gd); 147 147 } 148 148 kfree(d->frames); 149 - mempool_destroy(d->bufpool); 149 + if (d->bufpool) 150 + mempool_destroy(d->bufpool); 150 151 kfree(d); 151 152 } 152 153