Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit a2126092 authored by Bradley Bolen's avatar Bradley Bolen Committed by Greg Kroah-Hartman
Browse files

mmc: core: Fix size overflow for mmc partitions

[ Upstream commit f3d7c229

 ]

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: default avatarBradley Bolen <bradleybolen@gmail.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent cbd2ee90
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment