Skip to content
Commit 1c1348bf authored by 蒋家盛's avatar 蒋家盛 Committed by Sebastian Reichel
Browse files

power: reset: mt6397: Check for null res pointer

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: d28c74c1

 ("power: reset: add driver for mt6323 poweroff")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 9652c024
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment