From efdd69d9ae041bc695f5ed1cc0766127a62fbe7f Mon Sep 17 00:00:00 2001 From: LekKit <50500857+LekKit@users.noreply.github.com> Date: Tue, 31 Oct 2023 15:53:42 +0200 Subject: [PATCH] rvvm: Fix MMIO op size validation --- src/rvvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rvvm.c b/src/rvvm.c index 31ecaed8f..4f1257290 100644 --- a/src/rvvm.c +++ b/src/rvvm.c @@ -715,7 +715,7 @@ PUBLIC rvvm_mmio_handle_t rvvm_attach_mmio(rvvm_machine_t* machine, const rvvm_m { rvvm_mmio_dev_t dev = *mmio; dev.machine = machine; - if (mmio->min_op_size > mmio->max_op_size || mmio->max_op_size > 8) { + if (mmio->min_op_size > mmio->max_op_size || mmio->min_op_size > 8) { rvvm_warn("MMIO device \"%s\" has invalid op sizes: min %u, max %u", mmio->type ? mmio->type->name : "null", mmio->min_op_size, mmio->max_op_size); rvvm_cleanup_mmio(&dev);