ia64/xen-unstable

changeset 14213:8103284bcede

acm: Fix bogus domain_rcu_lock() invocations to rcu_unlock_domain().
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author kfraser@localhost.localdomain
date Fri Mar 02 14:42:25 2007 +0000 (2007-03-02)
parents a69d98bf0c55
children 88282487c28a
files xen/include/acm/acm_hooks.h
line diff
     1.1 --- a/xen/include/acm/acm_hooks.h	Fri Mar 02 13:46:39 2007 +0000
     1.2 +++ b/xen/include/acm/acm_hooks.h	Fri Mar 02 14:42:25 2007 +0000
     1.3 @@ -247,12 +247,12 @@ static inline int acm_pre_domctl(struct 
     1.4              if (*ssid == NULL) {
     1.5                  printk("%s: Warning. Destroying domain without ssid pointer.\n", 
     1.6                         __func__);
     1.7 -                domain_rcu_lock(d);
     1.8 +                rcu_unlock_domain(d);
     1.9                  return -EACCES;
    1.10              }
    1.11              d->ssid = NULL; /* make sure it's not used any more */
    1.12               /* no policy-specific hook */
    1.13 -            domain_rcu_lock(d);
    1.14 +            rcu_unlock_domain(d);
    1.15              ret = 0;
    1.16          }
    1.17          break;