[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
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |