Page MenuHomeFreeBSD

D32209.id95883.diff
No OneTemporary

D32209.id95883.diff

Index: sys/dev/mmc/mmc_helpers.c
===================================================================
--- sys/dev/mmc/mmc_helpers.c
+++ sys/dev/mmc/mmc_helpers.c
@@ -105,9 +105,9 @@
* if it's not present based on the clock that the mmc controller
* operates on
*/
- max_freq = 0;
- device_get_property(dev, "max-frequency", &max_freq, sizeof(uint64_t));
- host->f_max = max_freq;
+ if (device_get_property(dev, "max-frequency", &max_freq,
+ sizeof(uint64_t)) > 0)
+ host->f_max = max_freq;
if (device_has_property(dev, "broken-cd"))
helper->props |= MMC_PROP_BROKEN_CD;

File Metadata

Mime Type
text/plain
Expires
Thu, Sep 3, 1:10 PM (16 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38084871
Default Alt Text
D32209.id95883.diff (590 B)

Event Timeline