diff options
author | Kees Cook <keescook@chromium.org> | 2014-05-22 14:43:55 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-26 09:31:04 -0400 |
commit | 35386320898ec01f922929877a723fe1d4ddf04b (patch) | |
tree | 4076c0cb58ad7f9586122239e3c289a53ea83436 /sound/soc/intel/sst-haswell-ipc.c | |
parent | 2fa190ce33bdf2f58bb0a65d94e08980d92c76ed (diff) |
ASoC: Intel: avoid format string leak to thread name
This makes sure a format string can never get processed into the worker
thread name from the device name.
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/intel/sst-haswell-ipc.c')
-rw-r--r-- | sound/soc/intel/sst-haswell-ipc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/sst-haswell-ipc.c b/sound/soc/intel/sst-haswell-ipc.c index e7996b39a484..a8fd60c67341 100644 --- a/sound/soc/intel/sst-haswell-ipc.c +++ b/sound/soc/intel/sst-haswell-ipc.c | |||
@@ -1735,7 +1735,7 @@ int sst_hsw_dsp_init(struct device *dev, struct sst_pdata *pdata) | |||
1735 | /* start the IPC message thread */ | 1735 | /* start the IPC message thread */ |
1736 | init_kthread_worker(&hsw->kworker); | 1736 | init_kthread_worker(&hsw->kworker); |
1737 | hsw->tx_thread = kthread_run(kthread_worker_fn, | 1737 | hsw->tx_thread = kthread_run(kthread_worker_fn, |
1738 | &hsw->kworker, | 1738 | &hsw->kworker, "%s", |
1739 | dev_name(hsw->dev)); | 1739 | dev_name(hsw->dev)); |
1740 | if (IS_ERR(hsw->tx_thread)) { | 1740 | if (IS_ERR(hsw->tx_thread)) { |
1741 | ret = PTR_ERR(hsw->tx_thread); | 1741 | ret = PTR_ERR(hsw->tx_thread); |