diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-02-28 12:35:40 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-03-04 14:52:42 +0000 |
commit | 15a007e7ae5b0680bc236b478c5c680512ec45bd (patch) | |
tree | 9960ce26be40eb29865896463c18b4cdb0591e3d /scripts/lib/kdoc/kdoc_output.py | |
parent | 5017dcb8fcace47292b081cb729d392f908c0ef8 (diff) |
iio: adc: ad4030: fix error pointer dereference in probe()
The intention here was obviously to return an error if devm_regmap_init()
fails, but the return statement was accidentally left out. This leads to
an error pointer dereference when we call:
ret = ad4030_detect_chip_info(st);
Add the return statement.
Fixes: ec25cf6f1ee3 ("iio: adc: ad4030: add support for ad4632-16 and ad4632-24")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/cc67cee7-9c65-46d2-aae3-f860fc3cc461@stanley.mountain
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions