OMAP2/3: SDRC: fix walking of SDRC params list
Subsystems (3)
PATCH 1/1 OMAP2/3: SDRC: fix walking of SDRC params list
This patch fixes a bug where omap2_sdrc_get_params() does not properly check for a valid table entry before continuing.
Signed-off-by Kevin Hilman <[email protected]>
--- arch/arm/mach-omap2/sdrc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/sdrc.c +1 -1
@@ -58,7 +58,7 @@ struct omap_sdrc_params *omap2_sdrc_get_params(unsigned long r) sp = sdrc_init_params; -while (sp->rate != r) +while (sp->rate && sp->rate != r) sp++;if (!sp->rate)
Signature · 1 line
1.6.0.3
Quoted 4 lines · Kevin Hilman
This patch fixes a bug where
omap2_sdrc_get_params()does not properly check for a valid table entry before continuing.Signed-off-by Kevin Hilman <[email protected]>
Acked-by Paul Walmsley <[email protected]>
- Paul
Tony Lindgren
maintainerQuoted 8 lines · Paul Walmsley
Quoted 4 lines · Kevin Hilman
This patch fixes a bug where
omap2_sdrc_get_params()does not properly check for a valid table entry before continuing.Signed-off-by Kevin Hilman <[email protected]>Acked-by Paul Walmsley <[email protected]>
Pushing to l-o tree today.
Tony