Home
last modified time | relevance | path

Searched hist:"43 fa739450492a0b870802d471de923184870a4c" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/
H A Dindustrialio-core.cdiff 43fa739450492a0b870802d471de923184870a4c Sat May 15 11:56:39 CEST 2021 Dan Carpenter <dan.carpenter@oracle.com> iio: core: Fix an error pointer vs NULL bug in devm_iio_device_alloc()

The devm_iio_device_alloc() function is supposed to return NULL and not
error pointers. Returning an error pointer will lead to a crash in the
callers.

Fixes: cf5724e91515 ("iio: core: simplify some devm functions")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/YJ+a1yaMu2QNATgt@mwanda
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>