summaryrefslogtreecommitdiff
path: root/hw/tpm/tpm_tis.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-11-06 19:39:22 +0100
committerStefan Berger <Stefan Berger stefanb@linux.vnet.ibm.com>2017-11-15 06:47:35 -0500
commit17b1af773ed81a9167abfa09749ab92bd05740b0 (patch)
tree86abed0e203dc354e5507b429674c13b5e20101d /hw/tpm/tpm_tis.c
parent83e83c34b2102153682729531b9c9d3e6659f037 (diff)
downloadqemu-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 'hw/tpm/tpm_tis.c')
0 files changed, 0 insertions, 0 deletions