Commit 2241ad60 authored by Alessandro Rubini's avatar Alessandro Rubini

buffers/vmalloc: bugfix after commit 6a7378a5

Just like drivers should update current_ctrl and not block->ctrl,
the same happens to buffers. This only applies to vmalloc, though.

Bug introduced by my commit 6a7378a5:
      zio-sys: delay copying current_ctrl to block->ctrl
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
Acked-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 0c0f981d
......@@ -135,7 +135,7 @@ static struct zio_block *zbk_alloc_block(struct zio_bi *bi,
item->block.datalen = datalen;
item->instance = zbki;
ctrl->mem_offset = offset;
bi->chan->current_ctrl->mem_offset = offset;
zio_set_ctrl(&item->block, ctrl);
return &item->block;
......
Markdown is supported
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