diff options
author | Charles Han <hanchunchao@inspur.com> | 2024-11-18 12:02:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-17 15:40:57 +0300 |
commit | 69b680bbac9bd611aaa308769d6c71e3e70eb3c3 (patch) | |
tree | 29ac882fb0f3cd65c264c4a7d797886f82140f20 /scripts/generate_rust_analyzer.py | |
parent | 07e07fbc772673f6229c8c4261bbeaf526b1c384 (diff) | |
download | linux-69b680bbac9bd611aaa308769d6c71e3e70eb3c3.tar.xz |
iio: adc: ti-ads1298: Add NULL check in ads1298_init
commit bcb394bb28e55312cace75362b8e489eb0e02a30 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions