notify_via_xen_event_channel() should check for dying domain.

Else we can fail on either ASSERTion in that function.

From: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2010-09-15 08:18:53 +01:00
1 parent d193f667ea
commit c87dafbd40
1 file changed
+6
+6
View File
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.