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:
Daniel De Graaf committed 2012-02-02 15:18:50 +00:00
1 parent f2aba4f387
commit dfc926ceb7
1 file changed
+1 -1
+1 -1
View File
@@ -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;
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.