From fdef3a7b9220e53d898742251a6f5a721beb557b Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Wed, 4 May 2022 09:08:33 +0300 Subject: [PATCH] binfmt/libelf: Fix function description field Copy&paste error, wrong description field used --- binfmt/libelf/libelf_addrenv.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/binfmt/libelf/libelf_addrenv.c b/binfmt/libelf/libelf_addrenv.c index cece78388e..4504a98ecc 100644 --- a/binfmt/libelf/libelf_addrenv.c +++ b/binfmt/libelf/libelf_addrenv.c @@ -146,10 +146,10 @@ int elf_addrenv_alloc(FAR struct elf_loadinfo_s *loadinfo, size_t textsize, } /**************************************************************************** - * Name: elf_addrenv_restore + * Name: elf_addrenv_select * * Description: - * Restore the address environment before elf_addrenv_select() was called.. + * Temporarily select the task's address environment. * * Input Parameters: * loadinfo - Load state information @@ -187,20 +187,16 @@ int elf_addrenv_select(FAR struct elf_loadinfo_s *loadinfo) #endif /**************************************************************************** - * Name: elf_addrenv_free + * Name: elf_addrenv_restore * * Description: - * Release the address environment previously created by - * elf_addrenv_alloc(). This function is called only under certain error - * conditions after the module has been loaded but not yet started. - * After the module has been started, the address environment will - * automatically be freed when the module exits. + * Restore the address environment before elf_addrenv_select() was called.. * * Input Parameters: * loadinfo - Load state information * * Returned Value: - * None. + * Zero (OK) on success; a negated errno value on failure. * ****************************************************************************/