[libvirt] [PATCH] cpu: Properly check input parameters
Jiri Denemark
jdenemar at redhat.com
Fri Apr 11 08:22:46 UTC 2014
On Fri, Apr 04, 2014 at 16:03:44 +0200, Peter Krempa wrote:
> 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,
Thanks and finally pushed.
Jirka
More information about the libvir-list
mailing list