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
This commit is contained in:
Linus Torvalds 2020-01-28 11:54:05 -08:00
commit 6b90e71a47
2 changed files with 5 additions and 2 deletions

View File

@ -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:

View File

@ -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));