From: Linus Walleij Date: Tue, 4 Jan 2011 23:44:32 +0000 (+0100) Subject: mmc: fix division by zero in MMC core X-Git-Tag: v2.6.38-rc1~418^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9b86841b372de01ae865080118e29159d8b7c39;p=pandora-kernel.git mmc: fix division by zero in MMC core The card is not always clocked and the clock frequency zero is perfectly legal, thus this code in mmc_set_data_timeout() may cause a division by zero. It will be triggered more often if you're using software clock gating but can be triggered under other conditions too. Reported-by: Pierre Tardy Signed-off-by: Linus Walleij Reviewed-by: Chris Ball Cc: Signed-off-by: Chris Ball --- Reading git-diff-tree failed