Message ID | 20200713124002.20882-1-martin.kaistra@linutronix.de |
---|---|
State | Accepted |
Commit | 892d4617357db355bf847ca37dd76cf946727ec2 |
Headers | show |
Series | mtd: mtdpart: use uint64_t instead of int for cur_off | expand |
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index d1f6029b2bf..d064ac30480 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c @@ -207,7 +207,7 @@ int mtd_parse_partitions(struct mtd_info *parent, const char **_mtdparts, { struct mtd_partition partition = {}, *parts; const char *mtdparts = *_mtdparts; - int cur_off = 0, cur_sz = 0; + uint64_t cur_off = 0, cur_sz = 0; int nparts = 0; int ret, idx; u64 sz;