summaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys
diff options
context:
space:
mode:
authorKees Cook2015-12-08 22:07:01 +0100
committerGreg Kroah-Hartman2016-02-08 02:34:58 +0100
commit58e1e5425f0dea78dcd9ae56c0330fa4ada6c792 (patch)
tree1c2e25619ed5df3ef91c1f121058d18fe04e29f3 /drivers/staging/unisys
parentstaging: unisys: visorchipset.c fixed spacing around operator (diff)
downloadkernel-qcow2-linux-58e1e5425f0dea78dcd9ae56c0330fa4ada6c792.tar.gz
kernel-qcow2-linux-58e1e5425f0dea78dcd9ae56c0330fa4ada6c792.tar.xz
kernel-qcow2-linux-58e1e5425f0dea78dcd9ae56c0330fa4ada6c792.zip
Staging: unisys: fix potential format string leak
Since "name" is always used directly, force "%s" for the kthread format string to avoid any potential format string leaks. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys')
-rw-r--r--drivers/staging/unisys/visorhba/visorhba_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/unisys/visorhba/visorhba_main.c b/drivers/staging/unisys/visorhba/visorhba_main.c
index d5178b44ba8c..202bfabfec6c 100644
--- a/drivers/staging/unisys/visorhba/visorhba_main.c
+++ b/drivers/staging/unisys/visorhba/visorhba_main.c
@@ -167,7 +167,7 @@ static int visor_thread_start(struct visor_thread_info *thrinfo,
{
/* used to stop the thread */
init_completion(&thrinfo->has_stopped);
- thrinfo->task = kthread_run(threadfn, thrcontext, name);
+ thrinfo->task = kthread_run(threadfn, thrcontext, "%s", name);
if (IS_ERR(thrinfo->task)) {
thrinfo->id = 0;
return PTR_ERR(thrinfo->task);