summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/compaction-times.py
diff options
context:
space:
mode:
authorCharles Han <hanchunchao@inspur.com>2025-05-19 10:47:41 +0800
committerSebastian Reichel <sebastian.reichel@collabora.com>2025-06-22 19:23:04 +0200
commitd9fa3aae08f99493e67fb79413c0e95d30fca5e9 (patch)
treec19c8ee6b96ca57da704718e8e1ae59dadd01b07 /tools/perf/scripts/python/compaction-times.py
parent7cf88213b95e9491572c4af39c7ba2829f9b2637 (diff)
power: supply: cpcap-charger: Fix null check for power_supply_get_by_name
In the cpcap_usb_detect() function, the power_supply_get_by_name() function may return `NULL` instead of an error pointer. To prevent potential null pointer dereferences, Added a null check. Fixes: eab4e6d953c1 ("power: supply: cpcap-charger: get the battery inserted infomation from cpcap-battery") Signed-off-by: Charles Han <hanchunchao@inspur.com> Link: https://lore.kernel.org/r/20250519024741.5846-1-hanchunchao@inspur.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions