From: Ian Campbell Date: Thu, 23 Feb 2012 09:59:35 +0000 (+0000) Subject: xen: add missing unlock from gnttab_get_version X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9c881a8b3969110192d83d746f9f407e7dcf654d;p=xen.git xen: add missing unlock from gnttab_get_version Signed-off-by: Ian Campbell Reported-by: Francisco Rocha Committed-by: Keir Fraser --- 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;