Re: [PATCH] BZ1072677: Avoid freeing of 0 file descriptor

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

 



Eric Blake <eblake@xxxxxxxxxx> wrote on 03/10/2014 05:49:54 PM:


>
> Indeed:
>
> $ git grep memset.*1
> src/conf/domain_conf.c:    memset(max_idx, -1, sizeof(max_idx));
> src/qemu/qemu_command.c:        memset(tapfd, -1, tapfdSize *
> sizeof(tapfd[0]));
> src/qemu/qemu_command.c:        memset(vhostfd, -1, vhostfdSize *
> sizeof(vhostfd[0]));
>
> So let's just copy that convention, instead of adding a new macro.
>
> ACK to the qemu_hotplug fixes if you switch to raw memset.


Pushed.
--
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]