Message ID | 20230703230752.13394-1-schmitzmic@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v2] block: bugfix for Amiga partition overflow check patch | expand |
On Tue, 2023-07-04 at 11:07 +1200, Michael Schmitz wrote:
> Partitons that did overflow the disk size (due to 32 bit int
^^^^^^^^^ typo
Adrian
Hi Adrian, Am 04.07.2023 um 17:08 schrieb John Paul Adrian Glaubitz: > On Tue, 2023-07-04 at 11:07 +1200, Michael Schmitz wrote: >> Partitons that did overflow the disk size (due to 32 bit int > ^^^^^^^^^ typo Thanks, that or a dodgy keyboard, meh... Will send v3 ... Cheers, Michael > > Adrian >
diff --git a/block/partitions/amiga.c b/block/partitions/amiga.c index ed222b9c901b..506921095412 100644 --- a/block/partitions/amiga.c +++ b/block/partitions/amiga.c @@ -90,7 +90,7 @@ int amiga_partition(struct parsed_partitions *state) } blk = be32_to_cpu(rdb->rdb_PartitionList); put_dev_sector(sect); - for (part = 1; blk>0 && part<=16; part++, put_dev_sector(sect)) { + for (part = 1; (s32) blk>0 && part<=16; part++, put_dev_sector(sect)) { /* Read in terms partition table understands */ if (check_mul_overflow(blk, (sector_t) blksize, &blk)) { pr_err("Dev %s: overflow calculating partition block %llu! Skipping partitions %u and beyond\n",