From: Marc-André Lureau <marcandre.lur...@redhat.com> So it can eventually be called multiple times safely.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- backends/tpm/tpm_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/backends/tpm/tpm_util.c b/backends/tpm/tpm_util.c index f2d1739e33..16eab82cd2 100644 --- a/backends/tpm/tpm_util.c +++ b/backends/tpm/tpm_util.c @@ -72,6 +72,7 @@ static void release_tpm(Object *obj, const char *name, void *opaque) if (*be) { tpm_backend_reset(*be); + *be = NULL; } } -- 2.49.0