commit | 249ead4572b7f4ebedae49b972a832ebed2fda9f | [log] [tgz] |
---|---|---|
author | Stefan Berger <stefanb@linux.ibm.com> | Mon Mar 25 10:56:03 2024 -0400 |
committer | Stefan Berger <stefanb@us.ibm.com> | Mon Apr 22 08:48:48 2024 -0400 |
tree | 1a2f2adfcb4ed2e18c5a9408c29e1b53f65d2699 | |
parent | a18714f29a37812985aeab389cd136c424d13acf [diff] |
swtpm: cuse: Lock file_ops_lock before sending startup (Coverity) Even though concurrency is not possible before ptm_cuse_lowlevel_main is called lock the file_ops_lock since Coverity is complaining that - g_lastCommand in ptm_send_startup - ptm_repsonse in ptm_send_startup - tpm_running in main are not locked. For consistency reasons now also lock these variables even before activation of concurrency. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>