WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-4.1-testing] x86: Bail from hpet_disable_legacy_bro

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.1-testing] x86: Bail from hpet_disable_legacy_broadcast() if legacy_hpet_event is uninitialised.
From: Xen patchbot-4.1-testing <patchbot@xxxxxxx>
Date: Wed, 27 Apr 2011 05:15:08 +0100
Delivery-date: Tue, 26 Apr 2011 21:15:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.1-testing] x86: Bail from hpet_disable_legacy_broadcast() if legacy_hpet_event is uninitialised., Xen patchbot-4 . 1-testing <=