Skip to content

Commit

Permalink
[SETUPLIB] FindSupportedSystemPartition(): Add missing NULL check
Browse files Browse the repository at this point in the history
Addendum to commit 59acff7.
  • Loading branch information
HBelusca committed Jun 10, 2024
1 parent ae27ffc commit c752e8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions base/setup/lib/utils/partlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -3346,6 +3346,11 @@ FindSupportedSystemPartition(
* should be our system partition.
*/
DiskEntry = GetSystemDisk(List);
if (!DiskEntry)
{
/* No system disk found, directly go check the alternative disk */
goto UseAlternativeDisk;
}

if (DiskEntry->DiskStyle == PARTITION_STYLE_GPT)
{
Expand Down

0 comments on commit c752e8c

Please sign in to comment.