Skip to content

Commit

Permalink
Merge branch 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/lin…
Browse files Browse the repository at this point in the history
…ux/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
  • Loading branch information
torvalds committed Jan 28, 2020
2 parents bcc8aff + dacc909 commit 6b90e71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion arch/x86/boot/setup.ld
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ SECTIONS
. = ALIGN(16);
_end = .;

/DISCARD/ : { *(.note*) }
/DISCARD/ : {
*(.eh_frame)
*(.note*)
}

/*
* The ASSERT() sink to . is intentional, for binutils 2.14 compatibility:
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/sysfb_simplefb.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ __init int create_simplefb(const struct screen_info *si,
if (si->orig_video_isVGA == VIDEO_TYPE_VLFB)
size <<= 16;
length = mode->height * mode->stride;
length = PAGE_ALIGN(length);
if (length > size) {
printk(KERN_WARNING "sysfb: VRAM smaller than advertised\n");
return -EINVAL;
}
length = PAGE_ALIGN(length);

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

0 comments on commit 6b90e71

Please sign in to comment.