diff options
| author | Stefan Hajnoczi <stefanha@redhat.com> | 2024-05-07 14:05:58 -0400 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2024-06-10 11:05:43 +0200 |
| commit | 365911b182017f05122b88a574477ff945ae91ab (patch) | |
| tree | aa4948068a6b2f3d72ea4a8ccf6f45221d8d5b0b /hw/misc/aspeed_sdmc.c | |
| parent | e669e800fc9ef8806af5c5578249ab758a4f8a5a (diff) | |
| download | focaccia-qemu-365911b182017f05122b88a574477ff945ae91ab.tar.gz focaccia-qemu-365911b182017f05122b88a574477ff945ae91ab.zip | |
qemu-io: add cvtnum() error handling for zone commands
cvtnum() parses positive int64_t values and returns a negative errno on failure. Print errors and return early when cvtnum() fails. While we're at it, also reject nr_zones values greater or equal to 2^32 since they cannot be represented. Reported-by: Peter Maydell <peter.maydell@linaro.org> Cc: Sam Li <faithilikerun@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-ID: <20240507180558.377233-1-stefanha@redhat.com> Reviewed-by: Sam Li <faithilikerun@gmail.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/misc/aspeed_sdmc.c')
0 files changed, 0 insertions, 0 deletions