]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
xen: add missing unlock from gnttab_get_version 4.1-testing
authorIan Campbell <ian.campbell@citrix.com>
Thu, 23 Feb 2012 10:37:13 +0000 (10:37 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 23 Feb 2012 10:37:13 +0000 (10:37 +0000)
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>
xen-unstable changeset:   24871:66cc5b67e749
xen-unstable date:        Thu Feb 23 09:59:35 2012 +0000

xen/common/grant_table.c

index 7ddc45d8f144ee9d9ac7e537cad1e5099ad3c8fc..f3b11a2c56a31af6fcc15d4cd407c4965f022737 100644 (file)
@@ -2241,6 +2241,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;
     else