Re: [PATCH] mmc: fix division by zero in MMC core

2011-01-05 Thread Chris Ball
Hi Linus, On Wed, Jan 05, 2011 at 12:44:32AM +0100, Linus Walleij wrote: > 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 gat

[PATCH] mmc: fix division by zero in MMC core

2011-01-04 Thread Linus Walleij
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 S