projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3f2018
)
mmc: am654_sdhci: Use MMC_MODES_END value instead of hardcoded value
author
Faiz Abbas
<faiz_abbas@ti.com>
Wed, 29 Jul 2020 01:33:41 +0000
(07:03 +0530)
committer
Lokesh Vutla
<lokeshvutla@ti.com>
Tue, 11 Aug 2020 15:04:45 +0000
(20:34 +0530)
The hardcoded array size leads to array overflows with changes in
speed modes enum in mmc core. Use MMC_MODES_END for otap_del_sel
array declaration to fix this.
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/am654_sdhci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/am654_sdhci.c
b/drivers/mmc/am654_sdhci.c
index cbc531dc5351cdb0cbbd9c48235357bd81a7e4c7..82abf484e4f732f1490995aa8315de80271b2bf8 100644
(file)
--- a/
drivers/mmc/am654_sdhci.c
+++ b/
drivers/mmc/am654_sdhci.c
@@
-75,7
+75,7
@@
struct am654_sdhci_plat {
struct mmc mmc;
struct regmap *base;
bool non_removable;
- u32 otap_del_sel[
11
];
+ u32 otap_del_sel[
MMC_MODES_END
];
u32 trm_icp;
u32 drv_strength;
u32 strb_sel;