Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03347936 authored by Ed L. Cashin's avatar Ed L. Cashin Committed by Greg KH
Browse files

[PATCH] aoe 5/12: don't try to free null bufpool



don't try to free null bufpool

Signed-off-by: default avatarEd L. Cashin <ecashin@coraid.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fa83c2dd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -146,6 +146,7 @@ aoedev_freedev(struct aoedev *d)
		put_disk(d->gd);
	}
	kfree(d->frames);
	if (d->bufpool)
		mempool_destroy(d->bufpool);
	kfree(d);
}