Re: [PATCH] Add missing error reporting when loading mac filter config for QEMU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/14/2011 08:57 AM, Daniel P. Berrange wrote:
> If the 'mac_filter' configuration parameter is enabled, and there
> is a failure to enable filtering, no error is reported back to
> the caller. Also fix some bogus whitespace indentation for
> hugetlbfs_mount

I probably would have split this into two patches, but oh well.  The net
result is still small enough to be reviewable.

> 
> * src/qemu/qemu_conf.c: Add missing error reporting
> ---
>  src/qemu/qemu_conf.c |   24 ++++++++++++++----------
>  1 files changed, 14 insertions(+), 10 deletions(-)

> @@ -398,12 +398,16 @@ int qemudLoadDriverConfig(struct qemud_driver *driver,
>              virReportSystemError(errno,
>                                   _("failed to enable mac filter in '%s'"),
>                                   __FILE__);
> +            virConfFree(conf);
> +            return -1;
>          }
>  
>          if ((errno = networkDisableAllFrames(driver))) {
>              virReportSystemError(errno,
>                           _("failed to add rule to drop all frames in '%s'"),
>                                   __FILE__);
> +            virConfFree(conf);
> +            return -1;

Here's the meat of the change.

ACK.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]