tpm: Move tpm_cleanup() to right place

As Emulator TPM backend uses chardev, tpm cleanup should happen before chardev
similar to other vhost-users.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
Amarnath Valluri 2017-09-29 14:10:21 +03:00 committed by Stefan Berger
parent f4ede81eed
commit c37cacabf2
2 changed files with 1 additions and 1 deletions

1
tpm.c
View file

@ -172,7 +172,6 @@ int tpm_init(void)
return -1;
}
atexit(tpm_cleanup);
return 0;
}