linux/drivers/mmc
Haibo Chen 02265cd603 mmc: sdhci: cast unsigned int to unsigned long long to avoid unexpeted error
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>
Cc: stable@vger.kernel.org # v3.15+
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2016-10-17 15:16:20 +02:00
..
card mmc: core: Annotate cmd_hdr as __le32 2016-10-10 14:14:49 +02:00
core mmc: core: changes frequency to hs_max_dtr when selecting hs400es 2016-10-10 14:01:15 +02:00
host mmc: sdhci: cast unsigned int to unsigned long long to avoid unexpeted error 2016-10-17 15:16:20 +02:00
Kconfig
Makefile