diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2019-04-16 02:37:32 +0300 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2019-04-16 07:43:19 -0700 |
commit | 11e600a8c79db090688475074a6ad13234f07541 (patch) | |
tree | f6dbeac04014102cb313622e8a25bad13f242525 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 81717283cf2c4c4d9bf8fd618cd6e5bdfe082edd (diff) |
ARM: OMAP1: ams-delta: fix early boot crash when LED support is disabled
When we boot with the LED support (CONFIG_NEW_LEDS) disabled,
gpio_led_register_device() will return a NULL pointer and we try
to dereference it. Fix by checking also for a NULL pointer.
Fixes: 19a2668a8ae3 ("ARM: OMAP1: ams-delta: Provide GPIO lookup table for LED device")
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions