Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
xenomai
Commits
93d3a6ea
Commit
93d3a6ea
authored
Apr 03, 2018
by
Philippe Gerum
Browse files
cobalt/timerfd: fix error check
parent
6e34bb5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
kernel/cobalt/posix/timerfd.c
View file @
93d3a6ea
...
...
@@ -173,8 +173,8 @@ COBALT_SYSCALL(timerfd_create, lostage, (int clockid, int flags))
return
-
EINVAL
;
clock
=
cobalt_clock_find
(
clockid
);
if
(
clock
==
NULL
)
return
-
EINVAL
;
if
(
IS_ERR
(
clock
)
)
return
PTR_ERR
(
clock
)
;
tfd
=
xnmalloc
(
sizeof
(
*
tfd
));
if
(
tfd
==
NULL
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment