mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
xsm: Use mapped IRQ not PIRQ in unmap_domain_pirq
XSM permissions are defined in terms of IRQs, not PIRQs; use the correct number when checking permission in unmap_domain_pirq. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Committed-by: Keir Fraser <keir@xen.org>
This commit is contained in:
1 parent
f2aba4f387
commit
dfc926ceb7
1 file changed
+1
-1
@@ -239,7 +239,7 @@ int physdev_unmap_pirq(domid_t domid, int pirq)
|
||||
if ( !IS_PRIV_FOR(current->domain, d) )
|
||||
goto free_domain;
|
||||
|
||||
ret = xsm_irq_permission(d, pirq, 0);
|
||||
ret = xsm_irq_permission(d, domain_pirq_to_irq(d, pirq), 0);
|
||||
if ( ret )
|
||||
goto free_domain;
|
||||
|
||||
|
||||