[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/5] rng: initialize file descriptor to -1
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 1/5] rng: initialize file descriptor to -1 |
Date: |
Wed, 11 Dec 2013 16:14:38 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
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 <address@hidden>
> ---
> backends/rng-random.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature