]> Git Repo - J-u-boot.git/commit
mmc_write.c: Make mmc_berase do 32bit safe 64bit math
authorTom Rini <[email protected]>
Fri, 12 Jun 2015 00:53:31 +0000 (20:53 -0400)
committerTom Rini <[email protected]>
Thu, 18 Jun 2015 20:11:41 +0000 (16:11 -0400)
commit180f87fcc58936fb8d9e5a6babce739666c50b13
tree90c757fdd1cb7eacb8c9696786f256ae30284960
parent14ec12fa6f3da065842a3428f6cd620f04abcd58
mmc_write.c: Make mmc_berase do 32bit safe 64bit math

We want to see if the requested start or total block count are
unaligned.  We discard the whole numbers and only care about the
remainder.  Update the code to use div_u64_rem here and add a comment.

Cc: Hans de Goede <[email protected]>
Cc: Pantelis Antoniou <[email protected]>
Cc: Bernhard Nortmann <[email protected]>
Reported-by: Simon Glass <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Tested-by: Bernhard Nortmann <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
drivers/mmc/mmc_write.c
This page took 0.035843 seconds and 4 git commands to generate.