From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel De Graaf Subject: [PATCH 05/10] xsm: Use mapped IRQ not PIRQ in unmap_domain_pirq Date: Tue, 31 Jan 2012 16:26:13 -0500 Message-ID: <1328045178-30665-6-git-send-email-dgdegra@tycho.nsa.gov> References: <1328045178-30665-1-git-send-email-dgdegra@tycho.nsa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1328045178-30665-1-git-send-email-dgdegra@tycho.nsa.gov> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Daniel De Graaf List-Id: xen-devel@lists.xenproject.org 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 --- 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 a3ceb7d..05fff9e 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; -- 1.7.7.6