]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4f7ed15a917d6c049c9365fabfb360fd0dd948f
tree619ef33bab975df1946eb118f7d03e6aaed77515
parent0592186c0d2015f58801f9696e1a1f075aae2e8b
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