diff options
author | Linus Walleij <[email protected]> | 2011-01-05 00:44:32 +0100 |
---|---|---|
committer | Chris Ball <[email protected]> | 2011-01-08 23:52:33 -0500 |
commit | e9b86841b372de01ae865080118e29159d8b7c39 (patch) | |
tree | c950489d3f41063fc0acc4b259ce4d4bae676d12 /net/unix/sysctl_net_unix.c | |
parent | 2bd6a935555b06622fa7f47a9c411b8a7812e4dc (diff) |
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 <[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]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions