Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LimaGroup
Lima-Launcher
Commits
30720585
Commit
30720585
authored
Jan 27, 2022
by
Alejandro Homs Puron
Browse files
[NETDEV_SET_QUEUE_CPU_AFFINITY] Improve error checking from snprintf
parent
21b1ccb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/netdev_set_queue_cpu_affinity.c
View file @
30720585
...
...
@@ -31,7 +31,7 @@ int main(int argc, char *argv[])
else
ret
=
snprintf
(
fname
,
len
,
"/sys/class/net/%s/queues/%s/rps_cpus"
,
dev
,
irq_queue
);
if
((
ret
<
0
)
||
(
ret
=
=
len
))
if
((
ret
<
0
)
||
(
ret
>
=
len
))
exit
(
3
);
fd
=
open
(
fname
,
O_WRONLY
);
...
...
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