Fix of a race condition in TPM backend driver
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.
Signed-off-by Stefan Berger <[email protected]>
xen-unstable.hg/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c +1 -0
@@ -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
Ewan Mellor
AppliedQuoted 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.
Signed-off-by Stefan Berger <[email protected]>
Applied, thank you.
Ewan.