diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2014-09-18 23:33:49 +0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-09-19 22:43:09 +0400 |
commit | bb98d9d1d2e791f368295c9c09c9a03fe3ac0e62 (patch) | |
tree | cba9ae3ea8c136a404e2dce04b31f9a5f09bcc41 /drivers/ipack | |
parent | b9bd7ff8069a7125da897de657da421c497d4f15 (diff) | |
download | linux-bb98d9d1d2e791f368295c9c09c9a03fe3ac0e62.tar.xz |
mmc: tmio: prevent endless loop in tmio_mmc_set_clock()
I spent a couple of days with the driver just hanging due to me forgetting to
specify the external crystal frequency, so that clk_get_rate() returned 0 and
thus the loop in tmio_mmc_set_clock() never ended. I don't think that's an
acceptable behavior, so I suggest that the minimum frequency is checked for 0
in tmio_mmc_host_probe().
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Ian Molton <ian.molton@codethink.co.uk>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/ipack')
0 files changed, 0 insertions, 0 deletions