Re: [PATCH v2 2/3] lmb: Return -EFAULT when freeing unallocated memory regions
Randolph Sapp <[email protected]>
| Newsgroups | gmane.comp.boot-loaders.u-boot |
|---|---|
| Message-ID | <DKN9XH3S6N7S.RQ3QUR9VMS0S__37785.6084190839$1786569243$gmane$org@ti.com> |
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]>