summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8821ae
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2014-05-22 11:57:16 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-23 21:33:51 +0900
commit6fdb1f4fb05998bb255cf4e2605bc5f0e842eb24 (patch)
treeba51edc455c99cbb929aa84787d4ceddcd2a5972 /drivers/staging/rtl8821ae
parent4b9708e0c6c24da9a49cec384472bd1bd7400a69 (diff)
downloadblackbird-obmc-linux-6fdb1f4fb05998bb255cf4e2605bc5f0e842eb24.tar.gz
blackbird-obmc-linux-6fdb1f4fb05998bb255cf4e2605bc5f0e842eb24.zip
staging/rtl8821ae: avoid format string leak to thread name
This makes sure the cfg->name can never accidentally be processed as a format string in the worker thread name. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8821ae')
-rw-r--r--drivers/staging/rtl8821ae/base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/rtl8821ae/base.c b/drivers/staging/rtl8821ae/base.c
index a4c9cc437bc6..49ee311ddcd9 100644
--- a/drivers/staging/rtl8821ae/base.c
+++ b/drivers/staging/rtl8821ae/base.c
@@ -404,7 +404,8 @@ static int _rtl_init_deferred_work(struct ieee80211_hw *hw)
/*<delete in kernel start>*/
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37))
/*<delete in kernel end>*/
- rtlpriv->works.rtl_wq = alloc_workqueue(rtlpriv->cfg->name, 0, 0);
+ rtlpriv->works.rtl_wq = alloc_workqueue("%s", 0, 0,
+ rtlpriv->cfg->name);
/*<delete in kernel start>*/
#else
rtlpriv->works.rtl_wq = create_workqueue(rtlpriv->cfg->name);
OpenPOWER on IntegriCloud