diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-28 17:00:43 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-28 17:00:43 -0600 |
commit | 0c8c1a071f909e0adee75bc75194898585d94a3f (patch) | |
tree | bf0dc1487b4b0af2763be974e9a7193c990f7c13 /nuttx/binfmt/binfmt_execmodule.c | |
parent | b0c533ed376fe69068ab63396eca17de3bbbeab7 (diff) | |
download | nuttx-0c8c1a071f909e0adee75bc75194898585d94a3f.tar.gz nuttx-0c8c1a071f909e0adee75bc75194898585d94a3f.tar.bz2 nuttx-0c8c1a071f909e0adee75bc75194898585d94a3f.zip |
nuttx/sched: Remove explicit references to errno. That is a problem from within the kernel for certain configurations
Diffstat (limited to 'nuttx/binfmt/binfmt_execmodule.c')
-rw-r--r-- | nuttx/binfmt/binfmt_execmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/binfmt/binfmt_execmodule.c b/nuttx/binfmt/binfmt_execmodule.c index 07c507233..00637d45c 100644 --- a/nuttx/binfmt/binfmt_execmodule.c +++ b/nuttx/binfmt/binfmt_execmodule.c @@ -185,7 +185,7 @@ int exec_module(FAR const struct binary_s *binp) #endif if (ret < 0) { - err = errno; + err = get_errno(); bdbg("task_init() failed: %d\n", err); goto errout_with_stack; } @@ -239,7 +239,7 @@ int exec_module(FAR const struct binary_s *binp) ret = task_activate((FAR struct tcb_s *)tcb); if (ret < 0) { - err = errno; + err = get_errno(); bdbg("task_activate() failed: %d\n", err); goto errout_with_stack; } @@ -259,7 +259,7 @@ errout_with_stack: errout_with_tcb: kfree(tcb); errout: - errno = err; + set_errno(err); bdbg("returning errno: %d\n", err); return ERROR; } |