diff options
author | Charles Han <hanchunchao@inspur.com> | 2024-11-18 17:02:08 +0800 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-12-07 17:23:41 +0000 |
commit | bcb394bb28e55312cace75362b8e489eb0e02a30 (patch) | |
tree | 06e1f1c80d0fc75f0e40b0039c849e9cede43cb7 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ad8479ac083b841da42975d79288b25c088c5cc3 (diff) |
iio: adc: ti-ads1298: Add NULL check in ads1298_init
devm_kasprintf() can return a NULL pointer on failure. A check on the
return value of such a call in ads1298_init() is missing. Add it.
Fixes: 00ef7708fa60 ("iio: adc: ti-ads1298: Add driver")
Signed-off-by: Charles Han <hanchunchao@inspur.com>
Link: https://patch.msgid.link/20241118090208.14586-1-hanchunchao@inspur.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions