forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
c34c15b02e
commit
7999f4b4e5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user