diff options
author | Tony Lindgren <[email protected]> | 2020-01-06 12:37:00 -0800 |
---|---|---|
committer | Daniel Lezcano <[email protected]> | 2020-01-16 19:09:02 +0100 |
commit | 4341067cfc20582195f47383cf059589b2641465 (patch) | |
tree | 09f4afc9a6f6f48f389913c7b6a174bf7ea0231f /tools/perf/scripts/python/export-to-sqlite.py | |
parent | bc83caddf17bd592cc19887e252c4ba416484d79 (diff) |
clocksource/drivers/timer-ti-dm: Fix uninitialized pointer access
Clean-up commit 8c82723414d5 ("clocksource/drivers/timer-ti-dm: Switch to
platform_get_irq") caused a regression where we now try to access
uninitialized data for timer:
drivers/clocksource/timer-ti-dm.c: In function 'omap_dm_timer_probe':
drivers/clocksource/timer-ti-dm.c:798:13: warning: 'timer' may be used
uninitialized in this function [-Wmaybe-uninitialized]
On boot we now get:
Unable to handle kernel NULL pointer dereference at virtual address
00000004
...
(omap_dm_timer_probe) from [<c061ac7c>] (platform_drv_probe+0x48/0x98)
(platform_drv_probe) from [<c0618c04>] (really_probe+0x1dc/0x348)
(really_probe) from [<c0618ef4>] (driver_probe_device+0x5c/0x160)
Let's fix the issue by moving platform_get_irq to happen after timer has
been allocated.
Fixes: bc83caddf17b ("clocksource/drivers/timer-ti-dm: Switch to platform_get_irq")
Cc: Yangtao Li <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
Acked-by: Olof Johansson <[email protected]>
Acked-by: Yangtao Li <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions