mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
02aa2a3763
commit
d8537548c9
13 changed files with 24 additions and 27 deletions
|
|
@ -921,7 +921,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
|
|||
hw->queues = IEEE80211_MAX_QUEUES;
|
||||
|
||||
local->workqueue =
|
||||
alloc_ordered_workqueue(wiphy_name(local->hw.wiphy), 0);
|
||||
alloc_ordered_workqueue("%s", 0, wiphy_name(local->hw.wiphy));
|
||||
if (!local->workqueue) {
|
||||
result = -ENOMEM;
|
||||
goto fail_workqueue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue