diff options
author | Kees Cook <keescook@chromium.org> | 2013-07-03 18:04:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 19:07:41 -0400 |
commit | d8537548c924db3c44afde7646b6e220c7beb79d (patch) | |
tree | 619ef33bab975df1946eb118f7d03e6aaed77515 /net/mac80211/main.c | |
parent | 02aa2a37636c8fa4fb9322d91be46ff8225b7de0 (diff) |
drivers: avoid format strings in names passed to alloc_workqueue()
For the workqueue creation interfaces that do not expect format strings,
make sure they cannot accidently be parsed that way. Additionally, clean
up calls made with a single parameter that would be handled as a format
string. Many callers are passing potentially dynamic string content, so
use "%s" in those cases to avoid any potential accidents.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 8a7bfc47d577..8eae74ac4e1e 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -921,7 +921,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
921 | hw->queues = IEEE80211_MAX_QUEUES; | 921 | hw->queues = IEEE80211_MAX_QUEUES; |
922 | 922 | ||
923 | local->workqueue = | 923 | local->workqueue = |
924 | alloc_ordered_workqueue(wiphy_name(local->hw.wiphy), 0); | 924 | alloc_ordered_workqueue("%s", 0, wiphy_name(local->hw.wiphy)); |
925 | if (!local->workqueue) { | 925 | if (!local->workqueue) { |
926 | result = -ENOMEM; | 926 | result = -ENOMEM; |
927 | goto fail_workqueue; | 927 | goto fail_workqueue; |