mmc: core: Fix size overflow for mmc partitions
authorBradley Bolen <bradleybolen@gmail.com>
Sun, 17 Nov 2019 01:00:45 +0000 (20:00 -0500)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 18 Nov 2019 09:05:38 +0000 (10:05 +0100)
commitf3d7c2292d104519195fdb11192daec13229c219
tree040b4395c1952d60bbb8393d1c77a1e16d752f74
parentc91843463e9e821dc3b48fe37e3155fa38299f6e
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>
drivers/mmc/core/mmc.c
include/linux/mmc/card.h