drivers: avoid format strings in names passed to alloc_workqueue()
authorKees Cook <keescook@chromium.org>
Wed, 3 Jul 2013 22:04:57 +0000 (15:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:41 +0000 (16:07 -0700)
commitd8537548c924db3c44afde7646b6e220c7beb79d
tree619ef33bab975df1946eb118f7d03e6aaed77515
parent02aa2a37636c8fa4fb9322d91be46ff8225b7de0
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>
13 files changed:
crypto/pcrypt.c
drivers/media/pci/cx18/cx18-driver.c
drivers/message/i2o/driver.c
drivers/net/wireless/rt2x00/rt2x00dev.c
drivers/net/wireless/rtlwifi/base.c
drivers/pci/hotplug/pciehp_hpc.c
drivers/pci/hotplug/shpchp_core.c
drivers/scsi/be2iscsi/be_main.c
drivers/scsi/qla4xxx/ql4_os.c
drivers/scsi/scsi_transport_fc.c
include/linux/workqueue.h
net/bluetooth/hci_core.c
net/mac80211/main.c