diff options
author | Kees Cook <keescook@chromium.org> | 2014-05-22 11:57:16 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-23 21:33:51 +0900 |
commit | 6fdb1f4fb05998bb255cf4e2605bc5f0e842eb24 (patch) | |
tree | ba51edc455c99cbb929aa84787d4ceddcd2a5972 /drivers/staging | |
parent | 4b9708e0c6c24da9a49cec384472bd1bd7400a69 (diff) |
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')
-rw-r--r-- | drivers/staging/rtl8821ae/base.c | 3 |
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); |