From 2dd224822cbec6616bd8c3203cb4c8dc1a25ff48 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 6 Nov 2007 11:49:15 +0000 Subject: [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 Signed-off-by: Tomonari Horikoshi Signed-off-by: Kazuhiro Suzuki --- unmodified_drivers/linux-2.6/platform-pci/evtchn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unmodified_drivers') 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 }; -- cgit v1.2.3