mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
drivers: avoid parsing names as kthread_run() format strings
Calling kthread_run with a single name parameter causes it to be handled as a format string. Many callers are passing potentially dynamic string content, so use "%s" in those cases to avoid any potential accidents. Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
d8537548c9
commit
f170168b9a
19 changed files with 28 additions and 22 deletions
|
|
@ -601,7 +601,7 @@ static int spi_init_queue(struct spi_master *master)
|
|||
|
||||
init_kthread_worker(&master->kworker);
|
||||
master->kworker_task = kthread_run(kthread_worker_fn,
|
||||
&master->kworker,
|
||||
&master->kworker, "%s",
|
||||
dev_name(&master->dev));
|
||||
if (IS_ERR(master->kworker_task)) {
|
||||
dev_err(&master->dev, "failed to create message pump task\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue