Skip to content
Snippets Groups Projects
Commit 5b807181 authored by Mark Mielke's avatar Mark Mielke Committed by Stefan Hajnoczi
Browse files

virtio-blk: Fix clean up of host notifiers for single MR transaction.


The code that introduced "virtio-blk: Configure all host notifiers in
a single MR transaction" introduced a second loop variable to perform
cleanup in second loop, but mistakenly still refers to the first
loop variable within the second loop body.

Fixes: d0267da6 ("virtio-blk: Configure all host notifiers in a single MR transaction")
Signed-off-by: default avatarMark Mielke <mark.mielke@gmail.com>
Message-id: CALm7yL08qarOu0dnQkTN+pa=BSRC92g31YpQQNDeAiT4yLZWQQ@mail.gmail.com
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
parent 99fc0836
No related branches found
No related tags found
No related merge requests found
......@@ -222,7 +222,7 @@ int virtio_blk_data_plane_start(VirtIODevice *vdev)
memory_region_transaction_commit();
while (j--) {
virtio_bus_cleanup_host_notifier(VIRTIO_BUS(qbus), i);
virtio_bus_cleanup_host_notifier(VIRTIO_BUS(qbus), j);
}
goto fail_host_notifiers;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment