From: Sergei Shtylyov Date: Thu, 18 Sep 2014 19:33:49 +0000 (+0400) Subject: mmc: tmio: prevent endless loop in tmio_mmc_set_clock() X-Git-Tag: fixes-against-v3.18-rc2~127^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb98d9d1d2e791f368295c9c09c9a03fe3ac0e62;p=pandora-kernel.git 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 Acked-by: Ian Molton Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson --- Reading git-diff-tree failed