From: Markus Elfring <Markus.Elfring@web.de>
To: "João Guilherme da Silva Freitas Lima" <joaoanandalima@gmail.com>,
linux-efi@vger.kernel.org, "Ard Biesheuvel" <ardb@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] efi: fix memory leak in efi_mem_reserve_iomem()
Date: Sun, 6 Dec 2026 09:36:56 +0100 [thread overview]
Message-ID: <f029b3dd-359b-457d-b3c9-9da78b620de9@web.de> (raw)
In-Reply-To: <20261205184743.1195-1-joaoanandalima@gmail.com>
> Hi efi subsystem,
Please take another look at information for the canonical patch format.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.4-rc5#n640
Greetings are probably not needed there.
> I reading the code of efi.c and, is noted a small memory leak:
>
> In this line:
>
> ret = parent ? request_resource(parent, res) : 0;
>
> If ret == 0, is success. But, if not is 0 (ret != 0) ? This patch added a verification
> to this case, removing res for evits a memory leak and return the ret.
Would an imperative wording approach be preferred for an improved change description?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.4-rc5#n94
Would you like to add error detection and the corresponding exception handling
according to a failed request_resource() call in another function implementation?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?h=v7.4-rc5#n526
Regards,
Markus
prev parent reply other threads:[~2026-12-06 8:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 18:47 dev12124
2026-12-05 19:20 ` Markus Elfring
2026-12-06 8:36 ` Markus Elfring [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f029b3dd-359b-457d-b3c9-9da78b620de9@web.de \
--to=markus.elfring@web.de \
--cc=ardb@kernel.org \
--cc=joaoanandalima@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®