diff options
author | Dan Carpenter <error27@gmail.com> | 2023-03-29 07:35:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-26 15:30:08 +0300 |
commit | 3a88ba08648f33dd420f06fc1a17e65f31eabad8 (patch) | |
tree | f6c0ef13c715ca9ba69b1b9f9a4f2ba7b7f686f3 /net/lapb/lapb_timer.c | |
parent | 5d7ef03e05b8c42a81c344896aba7ede4c26056f (diff) | |
download | linux-3a88ba08648f33dd420f06fc1a17e65f31eabad8.tar.xz |
iio: adc: at91-sama5d2_adc: fix an error code in at91_adc_allocate_trigger()
commit 73a428b37b9b538f8f8fe61caa45e7f243bab87c upstream.
The at91_adc_allocate_trigger() function is supposed to return error
pointers. Returning a NULL will cause an Oops.
Fixes: 5e1a1da0f8c9 ("iio: adc: at91-sama5d2_adc: add hw trigger and buffer support")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/5d728f9d-31d1-410d-a0b3-df6a63a2c8ba@kili.mountain
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions