Skip to content
Commit 88f04bc3 authored by Kunwu Chan's avatar Kunwu Chan Committed by Sebastian Reichel
Browse files

power: supply: Fix null pointer dereference in smb2_probe



devm_kasprintf and devm_kzalloc return a pointer to dynamically
allocated memory which can be NULL upon failure.

Fixes: 8648aeb5 ("power: supply: add Qualcomm PMI8998 SMB2 Charger driver")
Signed-off-by: default avatarKunwu Chan <chentao@kylinos.cn>
Link: https://lore.kernel.org/r/20231124075021.1335289-1-chentao@kylinos.cn


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 195c3167
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment