]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: pac1921: add missing error return in probe()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 8 Aug 2024 19:28:17 +0000 (22:28 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 10 Aug 2024 10:34:27 +0000 (11:34 +0100)
commitc5d2291a3086f4b59ae42d5082cfe45ef9103062
tree0673a87413ccb17b30cad534ff9d8e203db88223
parentf2271ba6f0744a0175ed387577405697ee0360db
iio: adc: pac1921: add missing error return in probe()

This error path was intended to return, and not just print an error.  The
current code will lead to an error pointer dereference.

Fixes: 371f778b83cd ("iio: adc: add support for pac1921")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Matteo Martelli <matteomartelli3@gmail.com>
Link: https://patch.msgid.link/1fa4ab12-0939-477d-bc92-306fd32e4fd9@stanley.mountain
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/pac1921.c