diff options
author | 2015-07-28 12:29:06 -0400 | |
---|---|---|
committer | 2015-07-31 16:09:23 -0700 | |
commit | 30948df80c1d17a7dfe5f4efba7e8f4880fc7662 (patch) | |
tree | ed2d3674f0375b46e832f14f0b74cd770fe84de0 /drivers/staging/unisys/visornic | |
parent | drivers, staging, unisys Add modalias files to visorbus devices (diff) | |
download | linux-dev-30948df80c1d17a7dfe5f4efba7e8f4880fc7662.tar.xz linux-dev-30948df80c1d17a7dfe5f4efba7e8f4880fc7662.zip |
staging: unisys: avoid format string parsing
This makes sure the kthread name can't be parsed as a format string.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/visornic')
-rw-r--r-- | drivers/staging/unisys/visornic/visornic_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c index 2a9b055dcc51..f4c0c9fd077b 100644 --- a/drivers/staging/unisys/visornic/visornic_main.c +++ b/drivers/staging/unisys/visornic/visornic_main.c @@ -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)); |