mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
x86/irq: avoid use-after-free on error path in pirq_guest_bind()
This is XSA-83. Coverity-ID: 1146952 Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
231d7f4098
commit
650fc2f76d
1 file changed
+1
-2
+1
-2
@@ -1590,8 +1590,7 @@ int pirq_guest_bind(struct vcpu *v, struct pirq *pirq, int will_share)
|
||||
printk(XENLOG_G_INFO
|
||||
"Cannot bind IRQ%d to dom%d. Out of memory.\n",
|
||||
pirq->pirq, v->domain->domain_id);
|
||||
rc = -ENOMEM;
|
||||
goto out;
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
action = newaction;
|
||||
|
||||