xcp-1.6-updates/xen-4.1.hg

changeset 23231:04d72f81775d

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>
xen-unstable changeset: 24871:66cc5b67e749
xen-unstable date: Thu Feb 23 09:59:35 2012 +0000
author Ian Campbell <ian.campbell@citrix.com>
date Thu Feb 23 10:37:13 2012 +0000 (2012-02-23)
parents bc8f88be9e4b
children 7ee4016eeb9f
files xen/common/grant_table.c
line diff
     1.1 --- a/xen/common/grant_table.c	Thu Feb 23 10:35:41 2012 +0000
     1.2 +++ b/xen/common/grant_table.c	Thu Feb 23 10:37:13 2012 +0000
     1.3 @@ -2241,6 +2241,8 @@ gnttab_get_version(XEN_GUEST_HANDLE(gntt
     1.4      op.version = d->grant_table->gt_version;
     1.5      spin_unlock(&d->grant_table->lock);
     1.6  
     1.7 +    rcu_unlock_domain(d);
     1.8 +
     1.9      if ( copy_to_guest(uop, &op, 1) )
    1.10          return -EFAULT;
    1.11      else