]> git.ipfire.org Git - thirdparty/grub.git/commit
[PATCH] sparc64: Fix BIOS Boot Partition support
authorJames Clarke <jrtc27@jrtc27.com>
Thu, 18 Jul 2019 12:31:55 +0000 (14:31 +0200)
committerVladimir Serbinenko <phcoder@google.com>
Thu, 18 Jul 2019 12:33:16 +0000 (14:33 +0200)
commit4e75b2ae313b13b5bfb54cc5e5c53368d6eb2a08
treea922172632d2734f5e72a6ba1448f683529f75c2
parent8f6843ce60b461d630439d07e577074c64511048
[PATCH] sparc64: Fix BIOS Boot Partition support

Currently, gpt_offset is uninitialised when using a BIOS Boot Partition
but is used unconditionally inside save_blocklists. Instead, ensure it
is always initialised to 0 (note that there is already separate code to
do the equivalent adjustment after we call save_blocklists on this code
path).

This patch has been tested on a T5-2 LDOM.

Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Eric Snowberg <eric.snowberg@oracle.com>
---
 util/setup.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
util/setup.c