[libvirt] [Patch] Fix vcpupin to inactive domains on Xend3.0.3.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I made the patch that corrected the following problem.
It is that when I execute the "virsh vcpupin" command to inactive
domains on Xend3.0.3,
Libvirt outputs the following Segmentation fault.

# virsh vcpupin guest_dom 0 0,1,2
Segmentation fault

Signed-off-by: Tomohiro Takahashi <takatom@xxxxxxxxxxxxxx>

Thanks,
Tomohiro Takahashi

--- xm_internal.c.org   2009-04-07 21:50:17.000000000 +0900
+++ xm_internal.c       2009-04-13 20:53:22.000000000 +0900
@@ -1700,7 +1700,8 @@ int xenXMDomainPinVcpu(virDomainPtr doma
     ret = 0;

  cleanup:
-    VIR_FREE(mapstr);
+    if( *mapstr != '\0' )
+        VIR_FREE(mapstr);
     VIR_FREE(cpuset);
     xenUnifiedUnlock(priv);
     return (ret);
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]