diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-07-11 10:56:52 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-07-11 10:56:52 +0100 |
commit | 929990b94033a5e32fbe24dce79dd6cdfae1d565 (patch) | |
tree | 5c530d59eb41577f4f0bd8db52a03366d894d377 /tools | |
parent | 82bc60ea2e999c7f08812eb3b22c3a9585aaa403 (diff) | |
download | xen-929990b94033a5e32fbe24dce79dd6cdfae1d565.tar.gz xen-929990b94033a5e32fbe24dce79dd6cdfae1d565.tar.bz2 xen-929990b94033a5e32fbe24dce79dd6cdfae1d565.zip |
[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@cl.cam.ac.uk>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/vtpm_manager/util/hashtable_itr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vtpm_manager/util/hashtable_itr.c b/tools/vtpm_manager/util/hashtable_itr.c index 2a27489733..5586f061f5 100644 --- a/tools/vtpm_manager/util/hashtable_itr.c +++ b/tools/vtpm_manager/util/hashtable_itr.c @@ -225,7 +225,7 @@ hashtable_iterator_search(struct hashtable_itr *itr, egress: #ifdef HASHTABLE_THREADED - pthread_mutex_lock(&h->mutex); + pthread_mutex_unlock(&h->mutex); #endif return ret; } |