]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM: OMAP2+: avoid NULL pointer dereference
authorNicolae Rosia <Nicolae_Rosia@mentor.com>
Tue, 1 Nov 2016 09:49:25 +0000 (11:49 +0200)
committerTony Lindgren <tony@atomide.com>
Mon, 7 Nov 2016 23:24:53 +0000 (16:24 -0700)
commit0ab11d8ea46fd6faf67df4461c795091429a1496
treeb98ea15a3fae04137c74c55bb1308eb87ef0e9ad
parent4ae46efcff19445afbf49fe7038de6020f37fefe
ARM: OMAP2+: avoid NULL pointer dereference

For OMAP4, volt_data is set in omap44xx_voltagedomains_init.
If the SoC is neither OMAP443X or OMAP446X, we end up with a
NULL in volt_data which causes a kernel oops.
This is the case when booting OMAP4470.

Signed-off-by: Nicolae Rosia <Nicolae_Rosia@mentor.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/voltage.c