Skip to content

Commit 6b90e71

Browse files
committed
Merge branch 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 boot update from Ingo Molnar: "Two minor changes: fix an atypical binutils combination build bug, and also fix a VRAM size check for simplefb" * 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/sysfb: Fix check for bad VRAM size x86/boot: Discard .eh_frame sections
2 parents bcc8aff + dacc909 commit 6b90e71

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

arch/x86/boot/setup.ld

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ SECTIONS
5151
. = ALIGN(16);
5252
_end = .;
5353

54-
/DISCARD/ : { *(.note*) }
54+
/DISCARD/ : {
55+
*(.eh_frame)
56+
*(.note*)
57+
}
5558

5659
/*
5760
* The ASSERT() sink to . is intentional, for binutils 2.14 compatibility:

arch/x86/kernel/sysfb_simplefb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ __init int create_simplefb(const struct screen_info *si,
9090
if (si->orig_video_isVGA == VIDEO_TYPE_VLFB)
9191
size <<= 16;
9292
length = mode->height * mode->stride;
93-
length = PAGE_ALIGN(length);
9493
if (length > size) {
9594
printk(KERN_WARNING "sysfb: VRAM smaller than advertised\n");
9695
return -EINVAL;
9796
}
97+
length = PAGE_ALIGN(length);
9898

9999
/* setup IORESOURCE_MEM as framebuffer memory */
100100
memset(&res, 0, sizeof(res));

0 commit comments

Comments
 (0)