Marc-André Lureau 17b1af773e 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>
2017-11-15 06:47:35 -05:00
..
2016-10-04 13:28:07 +01:00
2017-08-02 18:30:13 -03:00
2017-10-27 16:03:54 +02:00
2017-11-05 14:52:10 +01:00
2017-10-15 05:54:40 +03:00
2016-01-29 15:07:25 +00:00
2017-09-27 11:35:59 +01:00
2017-11-05 14:52:10 +01:00
2017-08-30 18:23:25 +02:00