X-Git-Url: https://git.proxmox.com/?p=pve-qemu.git;a=blobdiff_plain;f=debian%2Fpatches%2Fpve%2F0046-block-io-accept-NULL-qiov-in-bdrv_pad_request.patch;fp=debian%2Fpatches%2Fpve%2F0046-block-io-accept-NULL-qiov-in-bdrv_pad_request.patch;h=0000000000000000000000000000000000000000;hp=d1d30b15d2d40f78997937511adb73ec66989eb9;hb=5b15e2ecaf054107200a49c7d2509053fb91c9fe;hpb=2775b2e3788bfed64345046ce6a669bcdf28eb43 diff --git a/debian/patches/pve/0046-block-io-accept-NULL-qiov-in-bdrv_pad_request.patch b/debian/patches/pve/0046-block-io-accept-NULL-qiov-in-bdrv_pad_request.patch deleted file mode 100644 index d1d30b1..0000000 --- a/debian/patches/pve/0046-block-io-accept-NULL-qiov-in-bdrv_pad_request.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Stefan Reiter -Date: Tue, 2 Mar 2021 16:11:54 +0100 -Subject: [PATCH] block/io: accept NULL qiov in bdrv_pad_request - -Some operations, e.g. block-stream, perform reads while discarding the -results (only copy-on-read matters). In this case they will pass NULL as -the target QEMUIOVector, which will however trip bdrv_pad_request, since -it wants to extend its passed vector. - -Simply check for NULL and do nothing, there's no reason to pad the -target if it will be discarded anyway. - -Signed-off-by: Thomas Lamprecht ---- - block/io.c | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/block/io.c b/block/io.c -index 3280144a17..cd7ba08768 100644 ---- a/block/io.c -+++ b/block/io.c -@@ -1794,6 +1794,10 @@ static int bdrv_pad_request(BlockDriverState *bs, - { - int ret; - -+ if (!qiov) { -+ return 0; -+ } -+ - bdrv_check_qiov_request(*offset, *bytes, *qiov, *qiov_offset, &error_abort); - - if (!bdrv_init_padding(bs, *offset, *bytes, pad)) {