[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.1-testing] x86: Bail from hpet_disable_legacy_broadcast() if legacy_hpet_event is uninitialised.
# HG changeset patch # User Keir Fraser <keir@xxxxxxx> # Date 1303823478 -3600 # Node ID 7c7ef1b6f4e571a31f8e9e3be5c30d94a75fe7b2 # Parent 7361cc362d642e73b49c319e2263d6b4fe2fe011 x86: Bail from hpet_disable_legacy_broadcast() if legacy_hpet_event is uninitialised. Signed-off-by: Keir Fraser <keir@xxxxxxx> --- diff -r 7361cc362d64 -r 7c7ef1b6f4e5 xen/arch/x86/hpet.c --- a/xen/arch/x86/hpet.c Mon Apr 25 15:28:33 2011 +0100 +++ b/xen/arch/x86/hpet.c Tue Apr 26 14:11:18 2011 +0100 @@ -647,6 +647,9 @@ u32 cfg; unsigned long flags; + if ( !legacy_hpet_event.shift ) + return; + spin_lock_irqsave(&legacy_hpet_event.lock, flags); legacy_hpet_event.flags |= HPET_EVT_DISABLE; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |