Commit bcb394bb authored by Charles Han's avatar Charles Han Committed by Jonathan Cameron
Browse files

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: 00ef7708 ("iio: adc: ti-ads1298: Add driver")
Signed-off-by: default avatarCharles Han <hanchunchao@inspur.com>
Link: https://patch.msgid.link/20241118090208.14586-1-hanchunchao@inspur.com


Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent ad8479ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment