linux/drivers/mmc
Haibo Chen 68b13e229b mmc: sdhci: cast unsigned int to unsigned long long to avoid unexpeted error
commit 02265cd603 upstream.

Potentially overflowing expression 1000000 * data->timeout_clks with
type unsigned int is evaluated using 32-bit arithmetic, and then used
in a context that expects an expression of type unsigned long long.

To avoid overflow, cast 1000000U to type unsigned long long.
Special thanks to Coverity.

Fixes: 7f05538af7 ("mmc: sdhci: fix data timeout (part 2)")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-28 03:01:26 -04:00
..
card mmc: block: don't use CMD23 with very old MMC cards 2016-10-28 03:01:26 -04:00
core mmc: longer timeout for long read time quirk 2016-06-01 12:15:50 -07:00
host mmc: sdhci: cast unsigned int to unsigned long long to avoid unexpeted error 2016-10-28 03:01:26 -04:00
Kconfig
Makefile mmc: sdhci-pci: add platform data 2012-01-11 23:58:47 -05:00