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

Jonathan Cameron jic23 at kernel.org
Sun Apr 26 03:40:05 PDT 2026


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

> On Sun, Apr 26, 2026 at 7:16 AM David Lechner <dlechner at baylibre.com> wrote:
> > I just updated iio/testing today and I see return without kfree().
> >
> >         priv->tsc_regmap = syscon_regmap_lookup_by_phandle(dev->of_node, "amlogic,hhi-sysctrl");
> >         if (IS_ERR(priv->tsc_regmap))
> >                 return dev_err_probe(dev, PTR_ERR(priv->tsc_regmap),
> >                                      "failed to get amlogic,hhi-sysctrl regmap\n");  
> > >> Should `#include <linux/cleanup.h>` though rather that relying on it being
> > >> included through another header.
> > >>
> > >> With that fixed...
> > >>
> > >> Reviewed-by: David Lechner <dlechner at baylibre.com>
> > >>  
> > >  
> >  
> Hi Jonathan,
> This code was merged into linux/master yesterday, perhaps you haven't
> updated the code base.
Ah.  My bad.  I tend to be lazy and use elixir to check stuff like this
and had completely forgotten I merged the patch that broke this :(

J
> 
> Best regards,
> Felix
> 




More information about the linux-amlogic mailing list