Re: [PATCH] iio: adc: meson-saradc: fix calibration buffer leak on error
From: Jonathan Cameron
Date: Mon Apr 27 2026 - 05:57:05 EST
On Sun, 26 Apr 2026 23:26:33 +0800
Felix Gu <ustc.gu@xxxxxxxxx> wrote:
> On Sun, Apr 26, 2026 at 6:41 PM Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
> >
> > That is the minimal fix, so we should probably do that first
> > even if we then circle back to consider if __free() magic is worth using here.
> >
> > J
>
> Hi Jonathan,
> You prefer a minimal fix here?
Yes please. Then if you like we can carry on discussion about whether
__free() is a good change here as a follow up.
That can include the fact that it would have avoided this bug ever being
introduced.
Thanks,
Jonathan
>
> Best regards,
> Felix