diff options
author | 2023-09-11 17:25:51 +0400 | |
---|---|---|
committer | 2023-09-13 08:42:57 -0400 | |
commit | 8e32ddff69b6b4547cc00592ad816484e160817a (patch) | |
tree | b4220153766f115bd740988c3f168998b4ff9bc9 /scripts/qapi/source.py | |
parent | Merge tag 'pull-vfio-20230911' of https://github.com/legoater/qemu into staging (diff) | |
download | qemu-8e32ddff69b6b4547cc00592ad816484e160817a.tar.xz qemu-8e32ddff69b6b4547cc00592ad816484e160817a.zip |
tpm: fix crash when FD >= 1024 and unnecessary errors due to EINTR
Replace select() with poll() to fix a crash when QEMU has a large number
of FDs. Also use RETRY_ON_EINTR to avoid unnecessary errors due to EINTR.
Cc: qemu-stable@nongnu.org
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2020133
Fixes: 56a3c24ffc ("tpm: Probe for connected TPM 1.2 or TPM 2")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions