Skip to content

Commit 0334793

Browse files
ecashinGreg KH
authored andcommitted
[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>
1 parent fa83c2d commit 0334793

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/block/aoe/aoedev.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ aoedev_freedev(struct aoedev *d)
146146
put_disk(d->gd);
147147
}
148148
kfree(d->frames);
149-
mempool_destroy(d->bufpool);
149+
if (d->bufpool)
150+
mempool_destroy(d->bufpool);
150151
kfree(d);
151152
}
152153

0 commit comments

Comments
 (0)