aboutsummaryrefslogtreecommitdiff
path: root/qmp.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2019-03-13 20:47:32 -0700
committerRichard Henderson <richard.henderson@linaro.org>2019-05-22 12:38:54 -0400
commit25fb26e4f4b7cd50b9a7314400a2f800a4082b71 (patch)
tree294e9e3735a2f0a34f05b9ce877ad6ae3e2432f2 /qmp.c
parent14a356f47560c8275b8e04fbee484a617fc45f80 (diff)
downloadqemu-25fb26e4f4b7cd50b9a7314400a2f800a4082b71.zip
qemu-25fb26e4f4b7cd50b9a7314400a2f800a4082b71.tar.gz
qemu-25fb26e4f4b7cd50b9a7314400a2f800a4082b71.tar.bz2
crypto: Do not fail for EINTR during qcrypto_random_bytes
We can always get EINTR for read; /dev/urandom is no exception. Rearrange the order of tests for likelihood; allow degenerate buflen==0 case to perform a no-op zero-length read. This means that the normal success path is a straight line with a single test for success. Reviewed-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'qmp.c')
0 files changed, 0 insertions, 0 deletions