upstream: 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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:51:23 +0000 (11:51 +0900)
commit9e6d533d0c4d4ae271b87cb81219ac3e2f89f9e0
tree4e01e9735d362d7cd029492eea0a1e014be8e29f
parent26fa9a5b2792fd5c9ce043c3fa6f5e06bf0726c3
upstream: 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