mmc: host: omap_hsmmc: avoid possible overflow of timeout value
authorRavikumar Kattekola <rk@ti.com>
Mon, 30 Jan 2017 10:11:58 +0000 (15:41 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:55 +0000 (13:20 +0100)
commita53210f56d7f3f75d1edc1b3a069ddb87b72a919
tree3aa9b4fa149865f2bb976534ae6b78423a75c7ad
parent8cc9a3e73de1264cb61d8eca4e15310f3b2b9746
mmc: host: omap_hsmmc: avoid possible overflow of timeout value

Fixes: a45c6cb81647 ("[ARM] 5369/1: omap mmc: Add new omap
hsmmc controller for 2430 and 34xx, v3")

when using really large timeout (up to 4*60*1000 ms for bkops)
there is a possibility of data overflow using
unsigned int so use 64 bit unsigned long long.

Signed-off-by: Ravikumar Kattekola <rk@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/omap_hsmmc.c