]> git.proxmox.com Git - pve-qemu.git/commit
fix patch for accepting NULL qiov when padding
authorFiona Ebner <f.ebner@proxmox.com>
Tue, 12 Mar 2024 08:47:50 +0000 (09:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 12 Mar 2024 12:11:21 +0000 (13:11 +0100)
commit061e9ceb3656c13960a19c4f85f4a9b2cb93ca40
tree20a1f848032d36f2e44ba3bd92d15a4e0f72d6df
parent0d4462207ba23931c168a5d674ee356517e86ba6
fix patch for accepting NULL qiov when padding

All callers of the function pass an address, so dereferencing once
before checking for NULL is required. It's also necessary to update
bytes and offset nevertheless, so the request will actually be aligned
later and not trigger an assertion failure.

Seems like this was accidentally broken in 8dca018 ("udpate and rebase
to QEMU v6.0.0") and this is effectively a revert to the original
version of the patch. The qiov functions changed back then, which
might've been the reason Stefan tried to simplify the patch.

Should fix live-import for certain kinds of VMDK images.

Reported-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
debian/patches/pve/0038-block-io-accept-NULL-qiov-in-bdrv_pad_request.patch