diff options
author | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2012-02-02 15:18:50 +0000 |
---|---|---|
committer | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2012-02-02 15:18:50 +0000 |
commit | dfc926ceb79d33d2742fca7e8d872348d940dea3 (patch) | |
tree | fb55e418b8b5875c383a701a5fef7ea30b7f6d9e /xen/arch/x86/physdev.c | |
parent | f2aba4f387b67238cd3293167ee3ee6b674d5b4f (diff) | |
download | xen-dfc926ceb79d33d2742fca7e8d872348d940dea3.tar.gz xen-dfc926ceb79d33d2742fca7e8d872348d940dea3.tar.bz2 xen-dfc926ceb79d33d2742fca7e8d872348d940dea3.zip |
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>
Diffstat (limited to 'xen/arch/x86/physdev.c')
-rw-r--r-- | xen/arch/x86/physdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/physdev.c b/xen/arch/x86/physdev.c index a3ceb7d84f..05fff9e8c8 100644 --- a/xen/arch/x86/physdev.c +++ b/xen/arch/x86/physdev.c @@ -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; |