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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));