]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
x86/efi: Fix earlyprintk off-by-one bug
authorMatt Fleming <matt.fleming@intel.com>
Mon, 11 Nov 2013 16:18:59 +0000 (16:18 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 28 Nov 2013 20:16:56 +0000 (20:16 +0000)
commit1f3a8bae21a22808f242ccfb22aca37a635e261e
tree5dfda7039c62c9a6d6e156f12e1ba330d9a3b486
parente0d59733f6b1796b8d6692642c87d7dd862c3e3a
x86/efi: Fix earlyprintk off-by-one bug

Dave reported seeing the following incorrect output on his Thinkpad T420
when using earlyprintk=efi,

[    0.000000] efi: EFI v2.00 by Lenovo
                    ACPI=0xdabfe000  ACPI 2.0=0xdabfe014 SMBIOS=0xdaa9e000

The output should be on one line, not split over two. The cause is an
off-by-one error when checking that the efi_y coordinate hasn't been
incremented out of bounds.

Reported-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/platform/efi/early_printk.c