mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
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>
This commit is contained in:
parent
2c7e1d4e4b
commit
58e1e5425f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue