diff options
| author | Paolo Bonzini | 2013-12-20 23:21:06 +0100 |
|---|---|---|
| committer | Luiz Capitulino | 2014-01-06 19:45:46 +0100 |
| commit | 513b8c74c4c899cd940a79131e76c5568aa11381 (patch) | |
| tree | 18f3615a938cf8aad4ce06b9dc9ab35d8af0d07a /include/exec/memory.h | |
| parent | qemu-monitor: HMP cpu-add wrapper (diff) | |
| download | qemu-513b8c74c4c899cd940a79131e76c5568aa11381.tar.gz qemu-513b8c74c4c899cd940a79131e76c5568aa11381.tar.xz qemu-513b8c74c4c899cd940a79131e76c5568aa11381.zip | |
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>
Diffstat (limited to 'include/exec/memory.h')
0 files changed, 0 insertions, 0 deletions
