Skip to content

Commit

Permalink
xen: relax signature check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeremy Fitzhardinge authored and Linus Torvalds committed Dec 11, 2007
1 parent c34c15b commit 7999f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7999f4b

Please sign in to comment.