dect
/
linux-2.6
Archived
13
0
Fork 0

[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:
ecashin@coraid.com 2005-04-18 22:00:19 -07:00 committed by Greg KH
parent fa83c2ddd4
commit 03347936af
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}