]> xenbits.xensource.com Git - xen.git/commitdiff
xen: add missing unlock from gnttab_get_version
authorIan Campbell <ian.campbell@citrix.com>
Thu, 23 Feb 2012 10:41:33 +0000 (10:41 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 23 Feb 2012 10:41:33 +0000 (10:41 +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 2bc86b76d131668c5fd0546571d5a0d6e0cb6506..f25c7be852f6d4941b7109b9fd68d759c2ff6ab0 100644 (file)
@@ -2213,6 +2213,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