]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: frequency: adf4350: Return -ENOMEM on memory allocation failure
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Wed, 11 Feb 2026 17:10:06 +0000 (19:10 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 08:24:22 +0000 (08:24 +0000)
commitbc2cb23607eb0ff99a67e260ec33d01c6e6f1290
tree2bdfa6fa1b4780300dd3f70bae045bcf03a60aeb
parent25ac1dea217f328ea71f8f09bfb290534de3cbce
iio: frequency: adf4350: Return -ENOMEM on memory allocation failure

adf4350_parse_dt() returns NULL only when devm_kzalloc() fails. The
caller should return -ENOMEM in this case, not -EINVAL.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/frequency/adf4350.c