mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 16:02:57 +00:00
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 <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Reviewed-by: Chris Ball <[email protected]> Cc: <[email protected]> Signed-off-by: Chris Ball <[email protected]>