On Tue, Apr 17, 2018 at 12:22:12 -0400, John Ferlan wrote:
> Commit id '43f2ccdc' called virDomainDiskSourceDefFormatInternal
> rather than formatting the the disk source inline. However, it
> did not handle the case where the helper failed. Over time the
> helper has been renamed to virDomainDiskSourceFormat. Similar to
> other consumers, if virDomainDiskSourceFormat fails, then the
> formatting could be off, so it's better to fail than to continue
> on with some possibly bad data. Alter the function and the caller
> to check status and jump to error in that case.
> 
> Found by Coverity
> 
> Signed-off-by: John Ferlan <[email protected]>
> ---
>  src/conf/snapshot_conf.c | 16 ++++++++++------
>  1 file changed, 10 insertions(+), 6 deletions(-)

ACK

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to