Skip to content

Commit

Permalink
[PATCH] aoe 5/12: don't try to free null bufpool
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ecashin@coraid.com authored and Greg KH committed Apr 19, 2005
1 parent fa83c2d commit 0334793
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/block/aoe/aoedev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0334793

Please sign in to comment.