mirror of https://github.com/wolfSSL/wolfBoot.git
F-9253: disk_open accepts GPT or MBR, not GPT-only
The @return contract said 'no valid GPT partition table' but disk_open falls back to parsing an MBR when no protective-MBR GPT is present.pull/892/head
parent
9f456bf864
commit
09f0c9a5a3
|
|
@ -117,7 +117,8 @@ static int disk_open_mbr(struct disk_drive *drive, const uint8_t *mbr_sector)
|
||||||
* @param[in] drv The drive number to open (0 to `MAX_DISKS - 1`).
|
* @param[in] drv The drive number to open (0 to `MAX_DISKS - 1`).
|
||||||
*
|
*
|
||||||
* @return The number of partitions found and initialized on success, or -1 if
|
* @return The number of partitions found and initialized on success, or -1 if
|
||||||
* the drive cannot be opened or no valid GPT partition table is found.
|
* the drive cannot be opened or no valid partition table (GPT or MBR) is
|
||||||
|
* found.
|
||||||
*/
|
*/
|
||||||
int disk_open(int drv)
|
int disk_open(int drv)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue