[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [VTPM] Fixed typo in VTPM manager.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1184147812 -3600
# Node ID ac814633799b1421afaba09c0880a17eb753526f
# Parent  c7b68954963b4afb9c0a56712d2a422c7aec94a4
[VTPM] Fixed typo in VTPM manager.

Replaces an instance of pthread_mutex_lock() that should be
pthreaad_mutex_unlock(). With thanks to our OpenTC partners at the
Technical University of Sofia, whose static analysis found this bug.

Signed-off-by: Derek G. Murray <Derek.Murray@xxxxxxxxxxxx>
---
 tools/vtpm_manager/util/hashtable_itr.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff -r c7b68954963b -r ac814633799b tools/vtpm_manager/util/hashtable_itr.c
--- a/tools/vtpm_manager/util/hashtable_itr.c   Wed Jul 11 10:54:06 2007 +0100
+++ b/tools/vtpm_manager/util/hashtable_itr.c   Wed Jul 11 10:56:52 2007 +0100
@@ -225,7 +225,7 @@ hashtable_iterator_search(struct hashtab
     
 egress:
 #ifdef HASHTABLE_THREADED
-    pthread_mutex_lock(&h->mutex);
-#endif 
-    return ret;
-}
+    pthread_mutex_unlock(&h->mutex);
+#endif 
+    return ret;
+}

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.