]> 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)
committerKevin Wolf <kwolf@redhat.com>
Tue, 22 Oct 2024 15:52:49 +0000 (17:52 +0200)
commit04bbc3ee52b32ac465547bb40c1f090a1b8f315a
tree181783fe136ad87ceb3d298ac9e830e0a4eaa099
parent2155d2dd7f733674586119b6b4ee0f52d2032779
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>
block/raw-format.c