[PATCH] iio: adc: meson-saradc: fix calibration buffer leak on error

Jonathan Cameron jic23 at kernel.org
Mon Apr 27 02:54:38 PDT 2026


On Sun, 26 Apr 2026 23:26:33 +0800
Felix Gu <ustc.gu at gmail.com> wrote:

> On Sun, Apr 26, 2026 at 6:41 PM Jonathan Cameron <jic23 at kernel.org> 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




More information about the linux-amlogic mailing list