Re: [PATCH v2] iio: potentiostat: lmp91000: fix probe order and cleanup paths
From: Jonathan Cameron
Date: Mon May 11 2026 - 13:35:49 EST
On Thu, 7 May 2026 19:54:24 +0100
Salah Triki <salah.triki@xxxxxxxxx> wrote:
> Fix the initialization order in lmp91000_probe() where the immutable
> trigger is set before data->cb_buffer is initialized, which would cause a
> NULL pointer dereference.
>
> Also, correct the cleanup labels in the error path to properly unregister
> the trigger before performing the triggered buffer cleanup, following the
> standard LIFO (Last-In-First-Out) resource release order.
>
> Fixes: 67e17300dc1d ("iio: potentiostat: add LMP91000 support")
> Signed-off-by: Salah Triki <salah.triki@xxxxxxxxx>
Applied and marked for stable
Thanks,
Jonathan