Re: [PATCH] Fix virDomainGetVcpus in the remote case

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

 



On Fri, Jun 22, 2007 at 04:25:25PM +0100, Richard W.M. Jones wrote:
> I wasn't copying enough data in the cpumaps parameter.  This fixes that 
> bug ...

  Looks fine, but maybe the error message need to be updated:

-    if (maplen > REMOTE_CPUMAPS_MAX) {                                         
+    if (maxinfo * maplen > REMOTE_CPUMAPS_MAX) {                               
         error (domain->conn, VIR_ERR_RPC, "maplen > REMOTE_CPUMAPS_MAX");


Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard@xxxxxxxxxx  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/


[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]