aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/grant_table.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-02-23 09:59:35 +0000
committerIan Campbell <ian.campbell@citrix.com>2012-02-23 09:59:35 +0000
commit9c881a8b3969110192d83d746f9f407e7dcf654d (patch)
tree5e22a133605b80172753417f268148ba47fa668d /xen/common/grant_table.c
parent23c3c39665e641c17bc02a411e1a483554393610 (diff)
downloadxen-9c881a8b3969110192d83d746f9f407e7dcf654d.tar.gz
xen-9c881a8b3969110192d83d746f9f407e7dcf654d.tar.bz2
xen-9c881a8b3969110192d83d746f9f407e7dcf654d.zip
xen: add missing unlock from gnttab_get_version
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Reported-by: Francisco Rocha <f.e.liberal-rocha@newcastle.ac.uk> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/grant_table.c')
-rw-r--r--xen/common/grant_table.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c
index 9defa4d74c..4d637833d6 100644
--- a/xen/common/grant_table.c
+++ b/xen/common/grant_table.c
@@ -2321,6 +2321,8 @@ gnttab_get_version(XEN_GUEST_HANDLE(gnttab_get_version_t uop))
op.version = d->grant_table->gt_version;
spin_unlock(&d->grant_table->lock);
+ rcu_unlock_domain(d);
+
if ( copy_to_guest(uop, &op, 1) )
return -EFAULT;