linux/drivers/mmc/core
Linus Walleij e9b86841b3 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 <tardyp@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Reviewed-by: Chris Ball <cjb@laptop.org>
Cc: <stable@kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
2011-01-08 23:52:33 -05:00
..
bus.c mmc: Register debugfs dir before calling card probe function. 2011-01-08 23:52:26 -05:00
bus.h mmc: rename dev_to_mmc_card() to mmc_dev_to_card() 2010-10-23 21:11:12 +08:00
core.c mmc: fix division by zero in MMC core 2011-01-08 23:52:33 -05:00
core.h mmc: Fix sd/sdio/mmc initialization frequency retries 2011-01-08 23:52:25 -05:00
debugfs.c mmc: Aggressive clock gating framework 2011-01-08 22:48:03 -05:00
host.c mmc: check for > 1 clk_requests when disabling gating 2011-01-08 23:52:22 -05:00
host.h mmc: Aggressive clock gating framework 2011-01-08 22:48:03 -05:00
Kconfig mmc: Aggressive clock gating framework 2011-01-08 22:48:03 -05:00
Makefile mmc: Makefile: Fix EXTRA_CFLAGS assignment 2010-10-23 21:11:15 +08:00
mmc_ops.c mmc: Test bus-width for old MMC devices 2011-01-08 23:52:09 -05:00
mmc_ops.h mmc: Test bus-width for old MMC devices 2011-01-08 23:52:09 -05:00
mmc.c mmc: Fix sd/sdio/mmc initialization frequency retries 2011-01-08 23:52:25 -05:00
sd_ops.c mmc: add erase, secure erase, trim and secure trim operations 2010-08-12 08:43:30 -07:00
sd_ops.h mmc: add erase, secure erase, trim and secure trim operations 2010-08-12 08:43:30 -07:00
sd.c mmc: Fix sd/sdio/mmc initialization frequency retries 2011-01-08 23:52:25 -05:00
sd.h mmc: split mmc_sd_init_card() 2010-08-11 08:59:02 -07:00
sdio_bus.c mmc: sdio: don't power up cards on system suspend 2011-01-08 22:48:13 -05:00
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c sdio: add new function for RAW (Read after Write) operation 2010-05-27 09:12:40 -07:00
sdio_irq.c
sdio_ops.c
sdio_ops.h
sdio.c mmc: Fix sd/sdio/mmc initialization frequency retries 2011-01-08 23:52:25 -05:00