]> git.sur5r.net Git - u-boot/blobdiff - disk/part_dos.c
clk: stm32f7: rename clk_stm32f7.c to clk_stm32f.c
[u-boot] / disk / part_dos.c
index 6dd2c2d147d706824afa62364fe182973f93ac09..046f9bbb3d697dccf702d263d9d0cd15f00b0a68 100644 (file)
@@ -220,7 +220,7 @@ static int part_get_info_extended(struct blk_desc *dev_desc,
                if (((pt->boot_ind & ~0x80) == 0) &&
                    (pt->sys_ind != 0) &&
                    (part_num == which_part) &&
-                   (is_extended(pt->sys_ind) == 0)) {
+                   (ext_part_sector == 0 || is_extended(pt->sys_ind) == 0)) {
                        info->blksz = DOS_PART_DEFAULT_SECTOR;
                        info->start = (lbaint_t)(ext_part_sector +
                                        le32_to_int(pt->start4));