summary refs log tree commit diff stats
path: root/qapi/qapi-clone-visitor.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 /qapi/qapi-clone-visitor.c
parent83e83c34b2102153682729531b9c9d3e6659f037 (diff)
downloadfocaccia-qemu-17b1af773ed81a9167abfa09749ab92bd05740b0.tar.gz
focaccia-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 'qapi/qapi-clone-visitor.c')
0 files changed, 0 insertions, 0 deletions