OSDN Git Service

virtio-blk: Fix clean up of host notifiers for single MR transaction.
authorMark Mielke <mark.mielke@gmail.com>
Thu, 2 Dec 2021 16:26:51 +0000 (11:26 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 6 Dec 2021 14:21:14 +0000 (14:21 +0000)
commit5b807181c27a940a3a7ad1f221a2e76a132cbdc0
tree28a68c4092690f032da8c5b816e93a1d5a5af4af
parent99fc08366b06282614daeda989d2fde6ab8a707f
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: d0267da61489 ("virtio-blk: Configure all host notifiers in a single MR transaction")
Signed-off-by: Mark Mielke <mark.mielke@gmail.com>
Message-id: CALm7yL08qarOu0dnQkTN+pa=BSRC92g31YpQQNDeAiT4yLZWQQ@mail.gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/dataplane/virtio-blk.c