]> git.ipfire.org Git - thirdparty/grub.git/commit
fs: Fix block lists not being able to address to end of disk sometimes
authorGlenn Washburn <development@efficientek.com>
Mon, 23 Nov 2020 09:27:42 +0000 (03:27 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Sat, 12 Dec 2020 00:19:03 +0000 (01:19 +0100)
commit8919eecd84e1b8e2e139bfa9df061cc01fa49dd5
tree1c33b31b48def323efd0b6de8d297ad04bd40bee
parent505d92f5e7e15b1f4d524d4c000eb2eb7886608b
fs: Fix block lists not being able to address to end of disk sometimes

When checking if a block list goes past the end of the disk, make sure
the total size of the disk is in GRUB native sector sizes, otherwise there
will be blocks at the end of the disk inaccessible by block lists.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/fs.c