summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKunwu Chan <chentao@kylinos.cn>2024-01-19 09:07:14 +0300
committerJiri Kosina <jkosina@suse.com>2024-01-23 13:22:42 +0300
commitb6eda11c44dc89a681e1c105f0f4660e69b1e183 (patch)
tree9f266658dbcdb138be305e8a084f1d88adbd33a1 /tools/perf/scripts/python/export-to-postgresql.py
parentafa6ac2690bb9904ff883c6e942281e1032a484d (diff)
downloadlinux-b6eda11c44dc89a681e1c105f0f4660e69b1e183.tar.xz
HID: nvidia-shield: Add missing null pointer checks to LED initialization
devm_kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity. [jkosina@suse.com: tweak changelog a bit] Signed-off-by: Kunwu Chan <chentao@kylinos.cn> Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions