mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
41ec7cd7be
commit
e182664256
1 file changed
+2
-2
@@ -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;
|
||||
|
||||