Re: [PATCH net v2 1/3] net: mdio-mux: Delete unnecessary devm_kfree

From: Andrew Lunn
Date: Wed Aug 18 2021 - 14:46:48 EST


On Tue, Aug 17, 2021 at 07:56:42PM -0700, Saravana Kannan wrote:
> On Tue, Aug 17, 2021 at 2:10 PM Andrew Lunn <andrew@xxxxxxx> wrote:
> >
> > On Tue, Aug 17, 2021 at 11:08:39AM -0700, Saravana Kannan wrote:
> > > The whole point of devm_* APIs is that you don't have to undo them if you
> > > are returning an error that's going to get propagated out of a probe()
> > > function. So delete unnecessary devm_kfree() call in the error return path.
> > >
> > > Signed-off-by: Saravana Kannan <saravanak@xxxxxxxxxx>
> > > Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
> > > Acked-by: Marc Zyngier <maz@xxxxxxxxxx>
> > > Tested-by: Marc Zyngier <maz@xxxxxxxxxx>
> > > Acked-by: Kevin Hilman <khilman@xxxxxxxxxxxx>
> > > Tested-by: Kevin Hilman <khilman@xxxxxxxxxxxx>
> >
> > Please add a Fixes: tag, since you want this in stable.
> >
> > All three patches need fixes tags, possibly different for each patch?
>
> I generally ask for patches to be picked up by stable only if it fixes
> a bug that puts the kernel in a bad state

Actually, you asked for stable. You set the subject to

[PATCH net v3 0/3] Clean up and fix error

where [PATCH net ] means stable. If you think this is just ongoing
development work, use [PATCH net-next ]. Then the Fixes tags are
optional.

Andrew