Ver Fonte

xen: relax signature check

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>
Jeremy Fitzhardinge há 17 anos atrás
pai
commit
7999f4b4e5
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      arch/x86/xen/enlighten.c

+ 1 - 1
arch/x86/xen/enlighten.c

@@ -1131,7 +1131,7 @@ asmlinkage void __init xen_start_kernel(void)
 	if (!xen_start_info)
 	if (!xen_start_info)
 		return;
 		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 */
 	/* Install Xen paravirt ops */
 	pv_info = xen_info;
 	pv_info = xen_info;