diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-11-06 19:39:22 +0100 |
---|---|---|
committer | Stefan Berger <Stefan Berger stefanb@linux.vnet.ibm.com> | 2017-11-15 06:47:35 -0500 |
commit | 17b1af773ed81a9167abfa09749ab92bd05740b0 (patch) | |
tree | 86abed0e203dc354e5507b429674c13b5e20101d /hw/tpm/tpm_tis.c | |
parent | 83e83c34b2102153682729531b9c9d3e6659f037 (diff) | |
download | 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 'hw/tpm/tpm_tis.c')
0 files changed, 0 insertions, 0 deletions