Skip to contentSkip to conversation

Fix of a race condition in TPM backend driver

PATCH Applied Stefan Berger 2 participants 2 messages Mar 22, 2006 – Apr 3, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix of a race condition in TPM backend driver

The attached patch fixes a race condition that occurs if after the backend has been removed there are still requests pending. This patch flushed all the pending requests.

xen-unstable.hg/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c +1 -0
Index: root/xen-unstable.hg/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c
===================================================================
@@ -55,6 +55,7 @@ static int tpmback_remove(struct xenbus_
 		be->backend_watch.node = NULL;
 	}
 	if (be->tpmif) {
+		vtpm_release_packets(be->tpmif, 0);
 		tpmif_put(be->tpmif);
 		be->tpmif = NULL;
 	}

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw
Quoted 5 lines · Stefan Berger

The attached patch fixes a race condition that occurs if after the backend has been removed there are still requests pending. This patch flushed all the pending requests.

Applied, thank you.

Ewan.