[libvirt] [PATCH] cpu: Properly check input parameters

Peter Krempa pkrempa at redhat.com
Fri Apr 4 14:03:44 UTC 2014


On 03/26/14 16:14, Jiri Denemark wrote:
> Most of the APIs in CPU driver do not expect to get NULL for input
> parameters. Let's mark them with ATTRIBUTE_NONNULL and also check for
> some members of virCPUDef when the APIs expect them have some specific
> values.
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  src/cpu/cpu.c | 48 +++++++++++++++++++++++++++++++++++++-----------
>  src/cpu/cpu.h | 36 ++++++++++++++++++++++++------------
>  2 files changed, 61 insertions(+), 23 deletions(-)
> 

ACK,

Peter


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


More information about the libvir-list mailing list