Commit 30948df8 authored by Kees Cook's avatar Kees Cook Committed by Greg Kroah-Hartman

staging: unisys: avoid format string parsing

This makes sure the kthread name can't be parsed as a format string.
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 59fd2c8b
...@@ -316,7 +316,7 @@ static int visor_thread_start(struct visor_thread_info *thrinfo, ...@@ -316,7 +316,7 @@ static int visor_thread_start(struct visor_thread_info *thrinfo,
void *thrcontext, char *name) void *thrcontext, char *name)
{ {
/* used to stop the thread */ /* used to stop the thread */
thrinfo->task = kthread_run(threadfn, thrcontext, name); thrinfo->task = kthread_run(threadfn, thrcontext, "%s", name);
if (IS_ERR(thrinfo->task)) { if (IS_ERR(thrinfo->task)) {
pr_debug("%s failed (%ld)\n", pr_debug("%s failed (%ld)\n",
__func__, PTR_ERR(thrinfo->task)); __func__, PTR_ERR(thrinfo->task));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment