[PATCH 3/4] rtems: Fix rtems_object_set_name()
Gedare Bloom
gedare at rtems.org
Wed Nov 25 17:27:12 UTC 2020
nvm...
On Tue, Nov 24, 2020 at 5:52 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:
> Return RTEMS_NO_MEMORY if there is not memory available to duplicate the
> name.
> ---
> cpukit/rtems/src/rtemsobjectsetname.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/cpukit/rtems/src/rtemsobjectsetname.c
> b/cpukit/rtems/src/rtemsobjectsetname.c
> index 9e1b3a4039..ca663c67cd 100644
> --- a/cpukit/rtems/src/rtemsobjectsetname.c
> +++ b/cpukit/rtems/src/rtemsobjectsetname.c
> @@ -36,6 +36,7 @@ rtems_status_code rtems_object_set_name(
> Objects_Information *information;
> Objects_Control *the_object;
> Objects_Id tmpId;
> + Status_Control status;
>
> if ( !name )
> return RTEMS_INVALID_ADDRESS;
> @@ -54,7 +55,7 @@ rtems_status_code rtems_object_set_name(
> return RTEMS_INVALID_ID;
> }
>
> - _Objects_Set_name( information, the_object, name );
> + status = _Objects_Set_name( information, the_object, name );
> _Objects_Allocator_unlock();
> - return RTEMS_SUCCESSFUL;
> + return STATUS_GET_CLASSIC( status );
> }
> --
> 2.26.2
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20201125/dc1ac1d6/attachment.html>
More information about the devel
mailing list