diff options
| author | 2023-11-24 15:50:21 +0800 | |
|---|---|---|
| committer | 2023-12-24 23:43:28 +0100 | |
| commit | 88f04bc3e737155e13caddf0ba8ed19db87f0212 (patch) | |
| tree | 84ae885d7f7718253ce19966b8bdbd8626f4de52 /lib/zstd/common/debug.c | |
| parent | power: reset: at91: Drop '__init' from at91_wakeup_status() (diff) | |
| download | wireguard-linux-88f04bc3e737155e13caddf0ba8ed19db87f0212.tar.xz wireguard-linux-88f04bc3e737155e13caddf0ba8ed19db87f0212.zip | |
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: 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>
Diffstat (limited to 'lib/zstd/common/debug.c')
0 files changed, 0 insertions, 0 deletions
