mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
mmc: core: Fix size overflow for mmc partitions
With large eMMC cards, it is possible to create general purpose partitions that are bigger than 4GB. The size member of the mmc_part struct is only an unsigned int which overflows for gp partitions larger than 4GB. Change this to a u64 to handle the overflow. Signed-off-by: Bradley Bolen <bradleybolen@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
c91843463e
commit
f3d7c2292d
2 changed files with 5 additions and 6 deletions
|
@ -226,7 +226,7 @@ struct mmc_queue_req;
|
|||
* MMC Physical partitions
|
||||
*/
|
||||
struct mmc_part {
|
||||
unsigned int size; /* partition size (in bytes) */
|
||||
u64 size; /* partition size (in bytes) */
|
||||
unsigned int part_cfg; /* partition type */
|
||||
char name[MAX_MMC_PART_NAME_LEN];
|
||||
bool force_ro; /* to make boot parts RO by default */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue