Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 678c857f authored by Martin Michlmayr's avatar Martin Michlmayr Committed by David Woodhouse
Browse files

[MTD] Don't oops when the RedBoot partition table is empty



This fixes a regression with the RedBoot parsing code introduced by
commit 0b47d654

Signed-off-by: default avatarMartin Michlmayr <tbm@cyrius.com>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent d24030f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ static int parse_redboot_partitions(struct mtd_info *master,
				}
			}
			break;
		} else {
		} else if (buf[i].size != -1) {
			/* re-calculate of real numslots */
			numslots = buf[i].size / sizeof(struct fis_image_desc);
		}