Commit 6fdb1f4f authored by Kees Cook's avatar Kees Cook Committed by Greg Kroah-Hartman

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: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4b9708e0
...@@ -404,7 +404,8 @@ static int _rtl_init_deferred_work(struct ieee80211_hw *hw) ...@@ -404,7 +404,8 @@ static int _rtl_init_deferred_work(struct ieee80211_hw *hw)
/*<delete in kernel start>*/ /*<delete in kernel start>*/
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37))
/*<delete in kernel end>*/ /*<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>*/ /*<delete in kernel start>*/
#else #else
rtlpriv->works.rtl_wq = create_workqueue(rtlpriv->cfg->name); rtlpriv->works.rtl_wq = create_workqueue(rtlpriv->cfg->name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment