aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-10-24 16:45:11 +0800
committerJonathan Cameron <[email protected]>2022-11-01 08:48:13 +0000
commit65f20301607d07ee279b0804d11a05a62a6c1a1c (patch)
tree5760dc14b65c090688336684e66cc8bdffdee793 /lib/mpi/mpi-sub-ui.c
parentca1547ab15f48dc81624183ae17a2fd1bad06dfc (diff)
iio: adc: at91_adc: fix possible memory leak in at91_adc_allocate_trigger()
If iio_trigger_register() returns error, it should call iio_trigger_free() to give up the reference that hold in iio_trigger_alloc(), so that it can call iio_trig_release() to free memory when the refcount hit to 0. Fixes: 0e589d5fb317 ("ARM: AT91: IIO: Add AT91 ADC driver.") Signed-off-by: Yang Yingliang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions