Re: [libvirt] [PATCH 3/3] conf: Fix error path in virNodeDevPCICapabilityParseXML

2016-05-07 Thread Erik Skultety
On 06/05/16 21:35, John Ferlan wrote: > If the call to virXPathNodeSet to set naddresses fails, Coverity notes > that the subsequent VIR_ALLOC_N cannot have a negative value (well it > probably wouldn't be negative per se). > > Signed-off-by: John Ferlan > --- >

[libvirt] [PATCH 3/3] conf: Fix error path in virNodeDevPCICapabilityParseXML

2016-05-06 Thread John Ferlan
If the call to virXPathNodeSet to set naddresses fails, Coverity notes that the subsequent VIR_ALLOC_N cannot have a negative value (well it probably wouldn't be negative per se). Signed-off-by: John Ferlan --- src/conf/node_device_conf.c | 5 - 1 file changed, 4