diff options
author | Kees Cook <keescook@chromium.org> | 2017-04-06 00:39:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-06 23:37:21 +0300 |
commit | df656bf6fbcf12524e5b2428c92ed3d59cc7b810 (patch) | |
tree | db9c4d3307299d9a748c8fdcab3b48d06c9e8797 /drivers | |
parent | 2f78227874754b1e10cd348fd6e7693b0dabb3f6 (diff) | |
download | linux-df656bf6fbcf12524e5b2428c92ed3d59cc7b810.tar.xz |
qlge: avoid format string exposure in workqueue
While unlikely, this makes sure the workqueue name won't be processed
as a format string.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlge/qlge_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qlge/qlge_main.c b/drivers/net/ethernet/qlogic/qlge/qlge_main.c index e9e647072596..1188d420fe53 100644 --- a/drivers/net/ethernet/qlogic/qlge/qlge_main.c +++ b/drivers/net/ethernet/qlogic/qlge/qlge_main.c @@ -4686,7 +4686,8 @@ static int ql_init_device(struct pci_dev *pdev, struct net_device *ndev, /* * Set up the operating parameters. */ - qdev->workqueue = alloc_ordered_workqueue(ndev->name, WQ_MEM_RECLAIM); + qdev->workqueue = alloc_ordered_workqueue("%s", WQ_MEM_RECLAIM, + ndev->name); INIT_DELAYED_WORK(&qdev->asic_reset_work, ql_asic_reset_work); INIT_DELAYED_WORK(&qdev->mpi_reset_work, ql_mpi_reset_work); INIT_DELAYED_WORK(&qdev->mpi_work, ql_mpi_work); |