aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorXiaoke Wang <[email protected]>2022-03-05 11:14:05 +0800
committerJonathan Cameron <[email protected]>2022-04-04 09:11:24 +0100
commitba93642188a6fed754bf7447f638bc410e05a929 (patch)
tree063eededf1192c5571b1e9cd557295c8bf591bee /tools/perf/scripts/python/export-to-sqlite.py
parent879a52379704e479237d0b97822fd9302fed0675 (diff)
iio: dummy: iio_simple_dummy: check the return value of kstrdup()
kstrdup() is also a memory allocation-related function, it returns NULL when some memory errors happen. So it is better to check the return value of it so to catch the memory error in time. Besides, there should have a kfree() to clear up the allocation if we get a failure later in this function to prevent memory leak. Signed-off-by: Xiaoke Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions