summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarc-André Lureau2017-11-06 19:39:22 +0100
committerStefan Berger2017-11-15 12:47:35 +0100
commit17b1af773ed81a9167abfa09749ab92bd05740b0 (patch)
tree86abed0e203dc354e5507b429674c13b5e20101d /scripts
parentspecs: Extend TPM spec with TPM emulator description (diff)
downloadqemu-17b1af773ed81a9167abfa09749ab92bd05740b0.tar.gz
qemu-17b1af773ed81a9167abfa09749ab92bd05740b0.tar.xz
qemu-17b1af773ed81a9167abfa09749ab92bd05740b0.zip
tpm-emulator: protect concurrent ctrl_chr access
The control chardev is being used from the data thread to set the locality of the next request. Altough the chr has a write mutex, we may potentially read the reply from another thread request. Add a mutex to protect from concurrent control commands. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions