SDRC: prevent null pointer dereference if sdrc_init_params is null
authorPaul Walmsley <paul@pwsan.com>
Tue, 24 Mar 2009 00:41:53 +0000 (00:41 +0000)
committerTony Lindgren <tony@atomide.com>
Wed, 25 Mar 2009 00:35:13 +0000 (17:35 -0700)
omap2_sdrc_get_params() should check to see if a board-*.c file has
called omap2_init_common_hw() with a null pointer for the
omap_sdrc_params argument, rather than attempting to dereference it.
Otherwise, boot will fail after the "Reprogramming SDRC" boot message.
Problem found by Peter Barada <peterb@logicpd.com>.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Peter Barada <peterb@logicpd.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

No differences found