From 6fdb1f4fb05998bb255cf4e2605bc5f0e842eb24 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Thu, 22 May 2014 11:57:16 -0700 Subject: 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8821ae/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/staging') 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) /**/ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) /**/ - rtlpriv->works.rtl_wq = alloc_workqueue(rtlpriv->cfg->name, 0, 0); + rtlpriv->works.rtl_wq = alloc_workqueue("%s", 0, 0, + rtlpriv->cfg->name); /**/ #else rtlpriv->works.rtl_wq = create_workqueue(rtlpriv->cfg->name); -- cgit v1.2.3