]> git.baikalelectronics.ru Git - uboot.git/commit
disk: gpt: verify alternate LBA points to last usable LBA
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Mon, 8 Mar 2021 16:07:11 +0000 (16:07 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 12 Apr 2021 21:17:11 +0000 (17:17 -0400)
commitec310618a2ad49893e6cc2a6ba8b4191da38ba77
treea5b50124886981da1c9a84b143945c0b1f4cb75e
parent27e9853472b53e72fa7f372d08f016263c1ac6b6
disk: gpt: verify alternate LBA points to last usable LBA

The gpt command require the GPT backup header at the standard location
at the end of the device. Check the alternate LBA value before reading
the GPT backup header from the last usable LBA of the device.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
disk/part_efi.c