]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
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)
commitc4df5a4d436bc3aea65cc665025d5ce62c8dfe09
tree0d06f828c3f8320a8688f95508f6530419589b9d
parent7b2a455b3167755686e048c193911591c9966418
SDRC: prevent null pointer dereference if sdrc_init_params is null

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>
arch/arm/mach-omap2/sdrc.c