acm: Fix bogus domain_rcu_lock() invocations to rcu_unlock_domain().

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-03-02 14:42:25 +00:00
1 parent 41ec7cd7be
commit e182664256
1 file changed
+2 -2
+2 -2
View File
@@ -247,12 +247,12 @@ static inline int acm_pre_domctl(struct xen_domctl *op, void **ssid)
if (*ssid == NULL) {
printk("%s: Warning. Destroying domain without ssid pointer.\n",
__func__);
domain_rcu_lock(d);
rcu_unlock_domain(d);
return -EACCES;
}
d->ssid = NULL; /* make sure it's not used any more */
/* no policy-specific hook */
domain_rcu_lock(d);
rcu_unlock_domain(d);
ret = 0;
}
break;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.