From: Keir Fraser Date: Wed, 15 Sep 2010 07:18:53 +0000 (+0100) Subject: notify_via_xen_event_channel() should check for dying domain. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11483 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c87dafbd403f8d44dad5f9eccedc64033596bdbf;p=xen.git notify_via_xen_event_channel() should check for dying domain. Else we can fail on either ASSERTion in that function. From: Olaf Hering Signed-off-by: Keir Fraser --- diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c index c6241d0598..f4a2c24d7a 100644 --- a/xen/common/event_channel.c +++ b/xen/common/event_channel.c @@ -1030,6 +1030,12 @@ void notify_via_xen_event_channel(struct domain *ld, int lport) spin_lock(&ld->event_lock); + if ( unlikely(ld->is_dying) ) + { + spin_unlock(&ld->event_lock); + return; + } + ASSERT(port_is_valid(ld, lport)); lchn = evtchn_from_port(ld, lport); ASSERT(lchn->consumer_is_xen);