Message ID | 56E85A5D.10502@citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/xen/include/asm-x86/bug.h b/xen/include/asm-x86/bug.h index e868e85..5f9032e 100644 --- a/xen/include/asm-x86/bug.h +++ b/xen/include/asm-x86/bug.h @@ -83,6 +83,11 @@ extern const struct bug_frame __start_bug_frames[], * in .rodata */ .macro BUG_FRAME type, line, file_str, second_frame, msg + + .if \type >= BUGFRAME_NR + .error "Invalid BUGFRAME index" + .endif + .L\@ud: ud2a .pushsection .rodata.str1, "aMS", @progbits, 1