Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
a959d7fe
Commit
a959d7fe
authored
7 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
fs/aio: Fix one additional place where the errno variable is being accessed inappropriately.
parent
a5cb1129
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fs/aio/aio_read.c
+6
-9
6 additions, 9 deletions
fs/aio/aio_read.c
with
6 additions
and
9 deletions
fs/aio/aio_read.c
+
6
−
9
View file @
a959d7fe
...
...
@@ -128,19 +128,16 @@ static void aio_read_worker(FAR void *arg)
}
#endif
/* Set the result of the read */
/* Set the result of the read
operation.
*/
#ifdef CONFIG_DEBUG_FS_ERROR
if
(
nread
<
0
)
{
int
errcode
=
get_errno
();
ferr
(
"ERROR: pread failed: %d
\n
"
,
errcode
);
DEBUGASSERT
(
errcode
>
0
);
aiocbp
->
aio_result
=
-
errcode
;
}
else
{
aiocbp
->
aio_result
=
nread
;
ferr
(
"ERROR: read failed: %d
\n
"
,
(
int
)
nread
);
}
#endif
aiocbp
->
aio_result
=
nread
;
/* Signal the client */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment