]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[xen] Fix failure path in hvm_ioremap()
authorMichael Brown <mcb30@ipxe.org>
Mon, 3 Aug 2026 21:20:47 +0000 (22:20 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 3 Aug 2026 21:20:47 +0000 (22:20 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/drivers/xen/hvm.c

index 4fbc1c001e5a7df398ba47f4e85b740bb0b3da10..b521e879680ff38a73bae49ad50081fb8e52c412 100644 (file)
@@ -212,7 +212,7 @@ static void * hvm_ioremap ( struct hvm_device *hvm, unsigned int space,
  err_add_to_physmap:
        for ( i-- ; ( signed int ) i >= 0 ; i-- ) {
                remove.domid = DOMID_SELF;
-               add.gpfn = ( ( mmio_phys / PAGE_SIZE ) + i );
+               remove.gpfn = ( ( mmio_phys / PAGE_SIZE ) + i );
                xenmem_remove_from_physmap ( &hvm->xen, &remove );
        }
        iounmap ( mmio );