[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] device-tree: get_val cannot cope with cells > 2, add early_panic


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Mon, 21 Jan 2013 22:33:17 +0000
  • Delivery-date: Mon, 21 Jan 2013 22:34:41 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1358772028 0
# Node ID 85aaa7a64131f59f374028ece7eb6746bc8779cc
# Parent  7962cb743400de7c155522f6bf7f4cd25f09b093
device-tree: get_val cannot cope with cells > 2, add early_panic

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Tim Deegan <tim@xxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---


diff -r 7962cb743400 -r 85aaa7a64131 xen/common/device_tree.c
--- a/xen/common/device_tree.c  Mon Jan 21 12:40:27 2013 +0000
+++ b/xen/common/device_tree.c  Mon Jan 21 12:40:28 2013 +0000
@@ -84,6 +84,9 @@ static void __init get_val(const u32 **c
 {
     *val = 0;
 
+    if ( cells > 2 )
+        early_panic("dtb value contains > 2 cells\n");
+
     while ( cells-- )
     {
         *val <<= 32;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.