diff options
| author | Antoniu Miclaus <antoniu.miclaus@analog.com> | 2026-02-11 19:10:05 +0200 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2026-02-23 08:24:22 +0000 |
| commit | 25ac1dea217f328ea71f8f09bfb290534de3cbce (patch) | |
| tree | 006fe21742f12cef6c9125f8ee60b284907b6306 /drivers/clocksource/timer-imx-sysctr.c | |
| parent | 8e901c49ffc8d59adabae4020724f96770d35db7 (diff) | |
iio: adc: pac1934: Return -ENOMEM on memory allocation failure
devm_kzalloc() returns NULL on allocation failure. The appropriate error
code for this condition is -ENOMEM, 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>
Diffstat (limited to 'drivers/clocksource/timer-imx-sysctr.c')
0 files changed, 0 insertions, 0 deletions
