Home
last modified time | relevance | path

Searched hist:"513 b8c74c4c899cd940a79131e76c5568aa11381" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/backends/
H A Drng-random.cdiff 513b8c74c4c899cd940a79131e76c5568aa11381 Fri Dec 20 16:21:06 CST 2013 Paolo Bonzini <pbonzini@redhat.com> rng: initialize file descriptor to -1

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 <pbonzini@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>