[libvirt] [PATCH] Ensure 'arch' is always set in cpuArchNodeData

Eric Blake eblake at redhat.com
Wed Sep 4 16:51:18 UTC 2013


On 09/04/2013 10:44 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> The s390, ppc and arm CPU drivers never set the 'arch' field
> in their impl of cpuArchNodeData. This leads to error messages
> being reported from cpuDataFree later, due to trying to use
> VIR_ARCH_NONE.
> 


> +++ b/src/cpu/cpu.h
> @@ -70,7 +70,7 @@ typedef void
>  (*cpuArchDataFree)  (virCPUDataPtr data);
>  
>  typedef virCPUDataPtr
> -(*cpuArchNodeData)  (void);
> +(*cpuArchNodeData)  (virArch arch);

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130904/c7f00b63/attachment-0001.sig>


More information about the libvir-list mailing list