Re: [PATCH v2 2/3] lmb: Return -EFAULT when freeing unallocated memory regions

Randolph Sapp <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <[email protected]>
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 <[email protected]>
> ---
>  include/lmb.h  | 2 ++
>  lib/lmb.c      | 2 +-
>  test/lib/lmb.c | 2 +-
>  3 files changed, 4 insertions(+), 2 deletions(-)

Reviewed-by: Randolph Sapp <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.