summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKunwu Chan <chentao@kylinos.cn>2023-11-24 15:50:21 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-25 15:35:54 -0800
commite2717302fbc20f148bcda362facee0444b949a3a (patch)
tree632917eec7284d81ccfdad80e187963d1fe7e57c /tools
parent98b8a550da83cc392a14298c4b3eaaf0332ae6ad (diff)
downloadlinux-stable-e2717302fbc20f148bcda362facee0444b949a3a.tar.gz
linux-stable-e2717302fbc20f148bcda362facee0444b949a3a.tar.bz2
linux-stable-e2717302fbc20f148bcda362facee0444b949a3a.zip
power: supply: Fix null pointer dereference in smb2_probe
[ Upstream commit 88f04bc3e737155e13caddf0ba8ed19db87f0212 ] devm_kasprintf and devm_kzalloc return a pointer to dynamically allocated memory which can be NULL upon failure. Fixes: 8648aeb5d7b7 ("power: supply: add Qualcomm PMI8998 SMB2 Charger driver") Signed-off-by: Kunwu Chan <chentao@kylinos.cn> Link: https://lore.kernel.org/r/20231124075021.1335289-1-chentao@kylinos.cn Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions