Skip to content

Commit

Permalink
staging: unisys: avoid format string parsing
Browse files Browse the repository at this point in the history
This makes sure the kthread name can't be parsed as a format string.

Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Benjamin Romer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
kees authored and gregkh committed Jul 31, 2015
1 parent 59fd2c8 commit 30948df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/unisys/visornic/visornic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ static int visor_thread_start(struct visor_thread_info *thrinfo,
void *thrcontext, char *name)
{
/* 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)) {
pr_debug("%s failed (%ld)\n",
__func__, PTR_ERR(thrinfo->task));
Expand Down

0 comments on commit 30948df

Please sign in to comment.