diff options
author | Keir Fraser <keir@xen.org> | 2010-11-29 17:44:32 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2010-11-29 17:44:32 +0000 |
commit | 9e1a3415b773fab5ec57f0f9e972df9881090bfb (patch) | |
tree | 7d1ace7817c1e0fe97df3ef8533e9c134a955856 /xen/arch/x86/physdev.c | |
parent | 3604b2eafb379357ab63e6081e55ff18327ad07b (diff) | |
download | xen-9e1a3415b773fab5ec57f0f9e972df9881090bfb.tar.gz xen-9e1a3415b773fab5ec57f0f9e972df9881090bfb.tar.bz2 xen-9e1a3415b773fab5ec57f0f9e972df9881090bfb.zip |
x86: fixes after emuirq changes
Signed-off-by: Wei Wang <wei.wang2@amd.com>
Diffstat (limited to 'xen/arch/x86/physdev.c')
-rw-r--r-- | xen/arch/x86/physdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/arch/x86/physdev.c b/xen/arch/x86/physdev.c index 2913a9c1b7..5e0bbe174b 100644 --- a/xen/arch/x86/physdev.c +++ b/xen/arch/x86/physdev.c @@ -236,7 +236,8 @@ static int physdev_unmap_pirq(struct physdev_unmap_pirq *unmap) spin_lock(&d->event_lock); ret = unmap_domain_pirq_emuirq(d, unmap->pirq); spin_unlock(&d->event_lock); - goto free_domain; + if ( unmap->domid == DOMID_SELF || ret ) + goto free_domain; } ret = -EPERM; |