U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Randolph Sapp <rs@ti.com>
To: Jonas Karlman <jonas@kwiboo.se>, Tom Rini <trini@konsulko.com>,
	"Randolph Sapp" <rs@ti.com>, Simon Glass <sjg@chromium.org>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: Joseph Guo <qijian.guo@nxp.com>,
	Emanuele Ghidoli <ghidoliemanuele@gmail.com>,
	Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>,
	<u-boot@lists.u-boot-project.org>
Subject: Re: [PATCH v2 2/3] lmb: Return -EFAULT when freeing unallocated memory regions
Date: Wed, 12 Aug 2026 16:13:30 -0500	[thread overview]
Message-ID: <DKN9XH3S6N7S.RQ3QUR9VMS0S@ti.com> (raw)
In-Reply-To: <20260811231650.3150771-3-jonas@kwiboo.se>

On Tue Aug 11, 2026 at 6:16 PM CDT, Jonas Karlman wrote:
> Make lmb_free() return -EFAULT when the requested memory region is not
> allocated, instead of the generic -1 error value.
>
> Document the updated error code in the public API comment and change the
> LMB unit test to check for the new -EFAULT errno value.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
> ---
>  include/lmb.h  | 2 ++
>  lib/lmb.c      | 2 +-
>  test/lib/lmb.c | 2 +-
>  3 files changed, 4 insertions(+), 2 deletions(-)

Reviewed-by: Randolph Sapp <rs@ti.com>

  reply	other threads:[~2026-08-12 21:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-11 23:16 [PATCH v2 0/3] boot: image-fdt: Restore suppression of irrelevant ERROR message Jonas Karlman
2026-08-11 23:16 ` [PATCH v2 1/3] lmb: Return -EFAULT when requested region is not part of memory map Jonas Karlman
2026-08-12 21:12   ` Randolph Sapp
2026-08-11 23:16 ` [PATCH v2 2/3] lmb: Return -EFAULT when freeing unallocated memory regions Jonas Karlman
2026-08-12 21:13   ` Randolph Sapp [this message]
2026-08-11 23:16 ` [PATCH v2 3/3] boot: image-fdt: Restore suppression of irrelevant ERROR message Jonas Karlman
2026-08-12 21:14   ` Randolph Sapp
2026-08-25  0:46 ` [PATCH v2 0/3] " Tom Rini

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=DKN9XH3S6N7S.RQ3QUR9VMS0S@ti.com \
    --to=rs@ti.com \
    --cc=balaji.selvanathan@oss.qualcomm.com \
    --cc=ghidoliemanuele@gmail.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jonas@kwiboo.se \
    --cc=qijian.guo@nxp.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.u-boot-project.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