Skip to content
Snippets Groups Projects
Commit 47a61f27 authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

buf-kmalloc: bugfix in destroy (introduced in 22a83f17 -- mem cache)


Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
Acked-by: default avatarFederico Vaga <federico.vaga@gmail.com>
parent 2026eb0f
Branches
Tags
No related merge requests found
...@@ -231,7 +231,7 @@ static void zbk_destroy(struct zio_bi *bi) ...@@ -231,7 +231,7 @@ static void zbk_destroy(struct zio_bi *bi)
item = list_entry(pos, struct zbk_item, list); item = list_entry(pos, struct zbk_item, list);
zbk_free_block(&zbki->bi, &item->block); zbk_free_block(&zbki->bi, &item->block);
} }
kmem_cache_free(zbk_slab, zbki); kfree(zbki);
} }
static const struct zio_buffer_operations zbk_buffer_ops = { static const struct zio_buffer_operations zbk_buffer_ops = {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment