diff options
author | Charles Han <hanchunchao@inspur.com> | 2024-11-18 10:02:08 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-12-07 18:23:41 +0100 |
commit | bcb394bb28e55312cace75362b8e489eb0e02a30 (patch) | |
tree | 06e1f1c80d0fc75f0e40b0039c849e9cede43cb7 /Documentation | |
parent | iio: adc: stm32-dfsdm: handle label as an optional property (diff) | |
download | linux-bcb394bb28e55312cace75362b8e489eb0e02a30.tar.xz linux-bcb394bb28e55312cace75362b8e489eb0e02a30.zip |
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 'Documentation')
0 files changed, 0 insertions, 0 deletions