Skip to content

Commit 3d77e8b

Browse files
LeeXiaolanTravMurav
authored andcommitted
lk2nd: boot: skip partition without label, rather than data abort
1 parent b89d7ee commit 3d77e8b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lk2nd/boot/boot.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ static void lk2nd_scan_devices(void)
3535
if (!bdev->is_leaf)
3636
continue;
3737

38+
/* Skip partitions without label. */
39+
if (NULL == bdev->label)
40+
continue;
41+
3842
/*
3943
* Skip partitions that are too small to have a boot fs on.
4044
*

0 commit comments

Comments
 (0)