[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aVuP0lJxn2pc6cNa@stanley.mountain>
Date: Mon, 5 Jan 2026 13:17:54 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Zilin Guan <zilin@....edu.cn>
Cc: markus.elfring@....de, James.Bottomley@...senpartnership.com,
jianhao.xu@....edu.cn, justin.tee@...adcom.com,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-scsi@...r.kernel.org, martin.petersen@...cle.com,
paul.ely@...adcom.com
Subject: Re: [PATCH 1/3] scsi: lpfc: Fix memory leak in
lpfc_config_port_post()
On Mon, Jan 05, 2026 at 12:53:40PM +0300, Dan Carpenter wrote:
> On Tue, Dec 30, 2025 at 06:20:08AM +0000, Zilin Guan wrote:
> > On Mon, Dec 29, 2025 at 10:09:04AM +0100, Markus Elfring wrote:
> > > …
> > > > Fix this by adding mempool_free() in the error path.
> > >
> > > Please avoid duplicate source code here.
> > > https://elixir.bootlin.com/linux/v6.19-rc2/source/drivers/scsi/lpfc/lpfc_init.c#L563-L564
> >
> > Thanks for pointing this out. I will use a goto label to unify the error
> > handling logic and avoid code duplication in v2.
> >
> > > See also:
> > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.19-rc3#n262
> > >
> > > Regards,
> > > Markus
> >
> > Regarding the stable kernel rules, do you consider this bug severe enough
> > to warrant a Cc: stable tag? Since this error path is unlikely to be
> > triggered during normal operation and the leak is small, I didn't think
> > it was critical enough to bother the stable maintainers.
>
> I don't agree with either of Markus's review comments. People have
> asked him to stop reviewing code or at least to stick to pointing out
> bugs or complaining about style and grammar issues but he doesn't
> listen.
I meant "or at least stop complaining about style and grammar issues".
regards,
dan carpenter
Powered by blists - more mailing lists