]> err.no Git - linux-2.6/commitdiff
xen: relax signature check
authorJeremy Fitzhardinge <jeremy@goop.org>
Mon, 10 Dec 2007 21:00:41 +0000 (13:00 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 11 Dec 2007 03:46:58 +0000 (19:46 -0800)
Some versions of Xen 3.x set their magic number to "xen-3.[12]", so
relax the test to match them.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/xen/enlighten.c

index 94c39aaf695facf3d3937633306bb7e5b17d41fd..b6af3ea43c7308b3e513272ccb5c9c0f6c224717 100644 (file)
@@ -1131,7 +1131,7 @@ asmlinkage void __init xen_start_kernel(void)
        if (!xen_start_info)
                return;
 
-       BUG_ON(memcmp(xen_start_info->magic, "xen-3.0", 7) != 0);
+       BUG_ON(memcmp(xen_start_info->magic, "xen-3", 5) != 0);
 
        /* Install Xen paravirt ops */
        pv_info = xen_info;