]> git.ipfire.org Git - thirdparty/qemu.git/commit
raw-format: Fix error message for invalid offset/size
authorKevin Wolf <kwolf@redhat.com>
Thu, 29 Aug 2024 18:55:27 +0000 (20:55 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 10 Nov 2024 08:09:26 +0000 (11:09 +0300)
commit21af1db1d09675528d783fa4822538b1c2d7d8f6
tree8693e471ad0447dba62901d6480f9706f9c37661
parent15bdc1d47709ba48447bf75d3d5b387911df30a0
raw-format: Fix error message for invalid offset/size

s->offset and s->size are only set at the end of the function and still
contain the old values when formatting the error message. Print the
parameters with the new values that we actually checked instead.

Fixes: 500e2434207d ('raw-format: Split raw_read_options()')
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20240829185527.47152-1-kwolf@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 04bbc3ee52b32ac465547bb40c1f090a1b8f315a)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
block/raw-format.c