summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2014-05-22 11:43:55 -0700
committerMark Brown <broonie@linaro.org>2014-05-26 14:31:04 +0100
commit35386320898ec01f922929877a723fe1d4ddf04b (patch)
tree4076c0cb58ad7f9586122239e3c289a53ea83436 /sound/soc
parent2fa190ce33bdf2f58bb0a65d94e08980d92c76ed (diff)
downloadop-kernel-dev-35386320898ec01f922929877a723fe1d4ddf04b.zip
op-kernel-dev-35386320898ec01f922929877a723fe1d4ddf04b.tar.gz
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')
-rw-r--r--sound/soc/intel/sst-baytrail-ipc.c2
-rw-r--r--sound/soc/intel/sst-haswell-ipc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/intel/sst-baytrail-ipc.c b/sound/soc/intel/sst-baytrail-ipc.c
index 7c1ec00..18273d2 100644
--- a/sound/soc/intel/sst-baytrail-ipc.c
+++ b/sound/soc/intel/sst-baytrail-ipc.c
@@ -892,7 +892,7 @@ int sst_byt_dsp_init(struct device *dev, struct sst_pdata *pdata)
/* start the IPC message thread */
init_kthread_worker(&byt->kworker);
byt->tx_thread = kthread_run(kthread_worker_fn,
- &byt->kworker,
+ &byt->kworker, "%s",
dev_name(byt->dev));
if (IS_ERR(byt->tx_thread)) {
err = PTR_ERR(byt->tx_thread);
diff --git a/sound/soc/intel/sst-haswell-ipc.c b/sound/soc/intel/sst-haswell-ipc.c
index e7996b3..a8fd60c 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)
/* start the IPC message thread */
init_kthread_worker(&hsw->kworker);
hsw->tx_thread = kthread_run(kthread_worker_fn,
- &hsw->kworker,
+ &hsw->kworker, "%s",
dev_name(hsw->dev));
if (IS_ERR(hsw->tx_thread)) {
ret = PTR_ERR(hsw->tx_thread);
OpenPOWER on IntegriCloud