aboutsummaryrefslogtreecommitdiffstats
path: root/unmodified_drivers
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-11-06 11:49:15 +0000
committerKeir Fraser <keir@xensource.com>2007-11-06 11:49:15 +0000
commit2dd224822cbec6616bd8c3203cb4c8dc1a25ff48 (patch)
tree7511c606ed35307206feff5610d31329fd919480 /unmodified_drivers
parent58a2569e7175e893205bca91d1113551889c30df (diff)
downloadxen-2dd224822cbec6616bd8c3203cb4c8dc1a25ff48.tar.gz
xen-2dd224822cbec6616bd8c3203cb4c8dc1a25ff48.tar.bz2
xen-2dd224822cbec6616bd8c3203cb4c8dc1a25ff48.zip
[PV-ON-HVM] Fix evtchn of unbind_from_irqhandler()
When xm block-detach command was done on PV-ON-HVM, the response of other disks was lost. It is because a wrong event channel was invalidated when detaching it. Not the evtchn number but the irq number is invalidated specifying it. Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com> Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com> Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
Diffstat (limited to 'unmodified_drivers')
-rw-r--r--unmodified_drivers/linux-2.6/platform-pci/evtchn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unmodified_drivers/linux-2.6/platform-pci/evtchn.c b/unmodified_drivers/linux-2.6/platform-pci/evtchn.c
index 2efa6a353d..39a930e217 100644
--- a/unmodified_drivers/linux-2.6/platform-pci/evtchn.c
+++ b/unmodified_drivers/linux-2.6/platform-pci/evtchn.c
@@ -223,7 +223,7 @@ void unbind_from_irqhandler(unsigned int irq, void *dev_id)
evtchn = evtchn_from_irq(irq);
if (is_valid_evtchn(evtchn)) {
- evtchn_to_irq[irq] = -1;
+ evtchn_to_irq[evtchn] = -1;
mask_evtchn(evtchn);
if (irq_evtchn[irq].close) {
struct evtchn_close close = { .port = evtchn };