]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Jun 2015 17:42:22 +0000 (13:42 -0400)
commit526639cb205517c4c83f7aef7884f00415990f3f
tree209ad6eea2370439e3fb9debd25f614252e8de3f
parent00f255cfbb795222c0bef47c019f9350197c4c2d
mmc: atmel-mci: fix bad variable type for clkdiv

[ Upstream commit 60c8f783a18feb95ad967c87e9660caf09fb4700 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/mmc/host/atmel-mci.c