On 12/10/2013 10:00 AM, Paolo Bonzini wrote:
> The file descriptor is never initialized to -1, which makes rng-random
> close stdin if an object is created and immediately destroyed.  If we
> change it to -1, we also need to protect qemu_set_fd_handler from
> receiving a bogus file descriptor.
> 
> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
> ---
>  backends/rng-random.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

Reviewed-by: Eric Blake <ebl...@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to