commit | 44acf591c86da150cbabb6b10f9607c9b19cc003 | [log] [tgz] |
---|---|---|
author | Stefan Berger <stefanb@linux.ibm.com> | Wed Aug 10 12:17:37 2022 -0400 |
committer | Stefan Berger <stefanb@us.ibm.com> | Tue Sep 06 14:08:45 2022 -0400 |
tree | 518d9a20ab77b5adbc6c252ebcae964e2d64a700 | |
parent | b4e6725cb02c7bdc1849cfc34470cd7b9c3906aa [diff] |
swtpm: Move locking of storage into tpmlib_start() Move the locking of the storage into tpmlib_start() after the call to TPMLIB_MainInit() which was previously doing the locking when the prepare function was called in the SWTPM_NVRAM_Init() callback invoked by TPMLIB_MainInit(). This allows for conditional locking in tpmlib_start() using a flag later on. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>