projects
/
spl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0ff89f
)
Fix -Werror=format-security compiler option
author
Brian Behlendorf
<behlendorf1@llnl.gov>
Wed, 14 Jul 2010 18:53:57 +0000
(11:53 -0700)
committer
Brian Behlendorf
<behlendorf1@llnl.gov>
Wed, 14 Jul 2010 18:53:57 +0000
(11:53 -0700)
Noticed under Ubuntu kernel builds we should be passing a
format specifier and the string, not just the string.
module/spl/spl-thread.c
patch
|
blob
|
history
diff --git
a/module/spl/spl-thread.c
b/module/spl/spl-thread.c
index 1345890ed828626521595d394217fc06885b80c1..bce912c4d9affa56f6196affe347f05b0b8842a3 100644
(file)
--- a/
module/spl/spl-thread.c
+++ b/
module/spl/spl-thread.c
@@
-123,7
+123,8
@@
__thread_create(caddr_t stk, size_t stksize, thread_func_t func,
tp->tp_state = state;
tp->tp_pri = pri;
- tsk = kthread_create(thread_generic_wrapper, (void *)tp, tp->tp_name);
+ tsk = kthread_create(thread_generic_wrapper, (void *)tp,
+ "%s", tp->tp_name);
if (IS_ERR(tsk)) {
CERROR("Failed to create thread: %ld\n", PTR_ERR(tsk));
RETURN(NULL);