WSL2-Linux-Kernel/drivers/power
Jiasheng Jiang 4849eca4fc power: reset: mt6397: Check for null res pointer
[ Upstream commit 1c1348bf05 ]

The return value of platform_get_resource() needs to be checked.
To avoid use of error pointer in case that there is no suitable
resource.

Fixes: d28c74c107 ("power: reset: add driver for mt6323 poweroff")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 11:03:49 +01:00
..
reset power: reset: mt6397: Check for null res pointer 2022-01-27 11:03:49 +01:00
supply power: bq25890: Enable continuous conversion for ADC at charging 2022-01-11 15:35:17 +01:00
Kconfig PM: AVS: Drop the avs directory and the corresponding Kconfig 2020-10-22 18:39:32 +02:00
Makefile PM: AVS: Drop the avs directory and the corresponding Kconfig 2020-10-22 18:39:32 +02:00