[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <2e00c1f1-8faa-5045-ddf5-2bf943f714f2@web.de>
Date: Sat, 18 Apr 2020 22:00:11 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Christophe Jaillet <christophe.jaillet@...adoo.fr>,
linux-m68k@...ts.linux-m68k.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org,
Bjorn Helgaas <bhelgaas@...gle.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Greg Ungerer <gerg@...ux-m68k.org>,
Lorenzo Pieralisi <lorenzo.pieralisi@....com>
Subject: Re: [PATCH] m68k/PCI: Fix a memory leak in an error handling path
> If 'ioremap' fails, we must free 'bridge', as done in other error handling
> path bellow.
I suggest to improve this change description.
* Please avoid a typo.
* Is an imperative wording preferred?
…
> +++ b/arch/m68k/coldfire/pci.c
> @@ -216,8 +216,10 @@ static int __init mcf_pci_init(void)
…
I propose to move the pci_free_host_bridge() call for the desired
exception handling to the end of this function implementation.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?id=c0d73a868d9b411bd2d0c8e5ff9d98bfa8563cb1#n450
Regards,
Markus
Powered by blists - more mailing lists