]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: atmel-mci: fix bad variable type for clkdiv
authorLudovic Desroches <ludovic.desroches@atmel.com>
Wed, 6 May 2015 13:16:46 +0000 (15:16 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 18 May 2015 07:04:42 +0000 (09:04 +0200)
commit4c65f7d3d35ac58b3de83dd4d9db7e366a4c5449
tree11da018d6c00c891e59a37cb6f83867fad098642
parent97a9f3b5915f8567d8aedea4794ed1aa1c0b6485
mmc: atmel-mci: fix bad variable type for clkdiv

clkdiv is declared as an u32 but it can be set to a negative value
causing a huge divisor value. Change its type to int to avoid this case.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Cc: <stable@vger.kernel.org> # 3.4 and later
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/atmel-mci.c