Skip to contentSkip to conversation

missing put_domain in DOM0_IOPORT_PERMISSION

PATCH New John Levon 1 participant 1 message Jun 3, 2005 x86

lore
Share & tools
lore

John Levon

author
#0 lore raw

PATCH 1/1 missing put_domain in DOM0_IOPORT_PERMISSION

There appears to be a missing put_domain() in the failure case. The code doesn't seem to be used by anyone, but anyway...

(I haven't tested this at all)

regards,
john

arch/x86/dom0_ops.new.c renamed from arch/x86/dom0_ops.c +3 -0
@@ -155,7 +155,10 @@ long arch_do_dom0_op(dom0_op_t *op, dom0
         {
             if ( (d->arch.iobmp_mask = xmalloc_array(
                 u8, IOBMP_BYTES)) == NULL )
+            {
+                put_domain(d);
                 break;
+            }
             memset(d->arch.iobmp_mask, 0xFF, IOBMP_BYTES);
         }