From: Ian Campbell Date: Thu, 23 Feb 2012 10:41:33 +0000 (+0000) Subject: xen: add missing unlock from gnttab_get_version X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=refs%2Fheads%2F4.0-testing;p=people%2Fvhanquez%2Fxen.git xen: add missing unlock from gnttab_get_version Signed-off-by: Ian Campbell Reported-by: Francisco Rocha Committed-by: Keir Fraser xen-unstable changeset: 24871:66cc5b67e749 xen-unstable date: Thu Feb 23 09:59:35 2012 +0000 --- diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index 2bc86b76d..f25c7be85 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -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