OpenCloudOS-Kernel/drivers/net/ethernet/mellanox/mlx4
Colin Ian King 942e7e5fc1 net/mlx4_core: fix incorrect size allocation for dev->caps.spec_qps
The current allocation for dev->caps.spec_qps is for the size of the
pointer and not the size of the actual  mlx4_spec_qps structure.  Fix
this by using the correct size.   Also splint allocation over a few
lines to make it cppcheck clean on overly wide lines.

Detected by CoverityScan, CID#1455222 ("Wrong sizeof argument")

Fixes: c73c8b1e47 ("net/mlx4_core: Dynamically allocate structs at mlx4_slave_cap")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-09-03 10:57:10 -07:00
..
Kconfig ptp_clock: Allow for it to be optional 2016-11-16 09:26:34 +01:00
Makefile net/mlx4: New file for QoS related firmware commands 2015-04-02 16:25:02 -04:00
alloc.c mlx4: sizeof style usage 2017-08-16 11:01:57 -07:00
catas.c net/mlx4_core: Avoid command timeouts during VF driver device shutdown 2017-01-30 15:45:27 -05:00
cmd.c net/mlx4: fix spelling mistake: "availible" -> "available" 2017-08-16 14:23:45 -07:00
cq.c {net, IB}/mlx4: Remove gfp flags argument 2017-07-17 21:21:24 -04:00
en_clock.c net/mlx4_en: fix overflow in mlx4_en_init_timestamp() 2017-02-26 15:39:43 -05:00
en_cq.c mlx4_en: remove unnecessary returned value 2017-07-24 16:29:55 -07:00
en_dcb_nl.c net/mlx4_en: Do not allocate redundant TX queues when TC is disabled 2017-06-29 15:56:15 -04:00
en_ethtool.c net/mlx4_en: Fix wrong indication of Wake-on-LAN (WoL) support 2017-08-02 10:44:09 -07:00
en_main.c mlx4_en: remove unnecessary error check 2017-07-24 17:26:32 -07:00
en_netdev.c net/mlx4: Add user mac FW update support 2017-08-29 14:58:32 -07:00
en_port.c mlx4: add rx_alloc_pages counter in ethtool -S 2017-03-09 09:54:46 -08:00
en_port.h net/mlx4_en: Check the enabling pptx/pprx flags in SET_PORT wrapper flow 2017-01-30 15:26:43 -05:00
en_resources.c mlx4: sizeof style usage 2017-08-16 11:01:57 -07:00
en_rx.c mlx4: sizeof style usage 2017-08-16 11:01:57 -07:00
en_selftest.c networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
en_tx.c mlx4: sizeof style usage 2017-08-16 11:01:57 -07:00
eq.c net/mlx4_core: Fix misplaced brackets of sizeof 2017-08-29 14:58:32 -07:00
fw.c net/mlx4: Add user mac FW update support 2017-08-29 14:58:32 -07:00
fw.h net/mlx4_core: Dynamically allocate structs at mlx4_slave_cap 2017-08-29 14:58:32 -07:00
fw_qos.c net/mlx4: fix spelling mistake: "availible" -> "available" 2017-08-16 14:23:45 -07:00
fw_qos.h net/mlx4: fix spelling mistake: "availible" -> "available" 2017-08-16 14:23:45 -07:00
icm.c mlx4: sizeof style usage 2017-08-16 11:01:57 -07:00
icm.h mlx4: sizeof style usage 2017-08-16 11:01:57 -07:00
intf.c mlx4: sizeof style usage 2017-08-16 11:01:57 -07:00
main.c net/mlx4_core: fix memory leaks on error exit path 2017-09-03 10:57:10 -07:00
mcg.c mlx4: sizeof style usage 2017-08-16 11:01:57 -07:00
mlx4.h net/mlx4: Add user mac FW update support 2017-08-29 14:58:32 -07:00
mlx4_en.h mlx4_en: remove unnecessary returned value 2017-07-24 16:29:55 -07:00
mlx4_stats.h mlx4: add rx_alloc_pages counter in ethtool -S 2017-03-09 09:54:46 -08:00
mr.c mlx4: sizeof style usage 2017-08-16 11:01:57 -07:00
pd.c io-mapping: Specify mapping size for io_mapping_map_wc() 2016-04-28 12:17:32 +01:00
port.c net/mlx4: Add user mac FW update support 2017-08-29 14:58:32 -07:00
profile.c net/mlx4_core: use swap() in mlx4_make_profile() 2015-06-11 15:19:41 -07:00
qp.c net/mlx4_core: fix incorrect size allocation for dev->caps.spec_qps 2017-09-03 10:57:10 -07:00
reset.c net/mlx4_core: Maintain a persistent memory for mlx4 device 2015-01-25 14:43:13 -08:00
resource_tracker.c mlx4: sizeof style usage 2017-08-16 11:01:57 -07:00
sense.c
srq.c {net, IB}/mlx4: Remove gfp flags argument 2017-07-17 21:21:24 -04:00