]> git.ipfire.org Git - thirdparty/grub.git/commit
loader/i386/linux: Do not use grub_le_to_cpu32() for relocatable variable
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Mon, 11 Jan 2021 03:04:36 +0000 (11:04 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 16:46:13 +0000 (17:46 +0100)
commit8fcfd1e0fc72d58766ce3dc09cf883c032f063f6
tree8d7a82f6c92204354da15d3daa73079f6c9906fe
parent2bcf0052981973dd39de5e0f66105c5a8348a1b2
loader/i386/linux: Do not use grub_le_to_cpu32() for relocatable variable

The relocatable variable is defined as grub_uint8_t. Relevant
member in setup_header structure is also defined as one byte
in Linux boot protocol. By semantic definition it is a bool type.
It is not appropriate to treat it as a four bytes. This patch
fixes the issue.

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/loader/i386/linux.c