Commit c846903b authored by Kevin Hilman's avatar Kevin Hilman Committed by Tony Lindgren

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: default avatarKevin Hilman <khilman@deeprootsystems.com>
Acked-by: default avatarPaul Walmsley <paul@pwsan.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent c4adf767
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment