Files
linux/arch
Janusz Krzysztofik f86bd3cae2 ARM: OMAP1: ams-delta: Fix possible use of uninitialized field
[ Upstream commit cec83ff124 ]

While playing with initialization order of modem device, it has been
discovered that under some circumstances (early console init, I
believe) its .pm() callback may be called before the
uart_port->private_data pointer is initialized from
plat_serial8250_port->private_data, resulting in NULL pointer
dereference.  Fix it by checking for uninitialized pointer before using
it in modem_pm().

Fixes: aabf31737a ("ARM: OMAP1: ams-delta: update the modem to use regulator API")
Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-15 10:31:01 +09:00
..
2023-05-15 09:58:04 +09:00
2018-05-19 14:06:17 +02:00
2018-05-30 13:19:56 +02:00
2018-02-17 14:52:07 +01:00
2016-10-19 08:39:47 -07:00
2023-05-15 09:19:11 +09:00