net/mlx4_core: Dynamically allocate structs at mlx4_slave_cap
authorEran Ben Elisha <eranbe@mellanox.com>
Mon, 28 Aug 2017 13:38:20 +0000 (16:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Aug 2017 21:58:32 +0000 (14:58 -0700)
commitc73c8b1e47ca275388f774fd36560ab7e994e99e
tree4ba92665eef8e853354dc36a09a96e49fe40cd67
parentb74fd306ef2d48781e807dd506cca818bb83d749
net/mlx4_core: Dynamically allocate structs at mlx4_slave_cap

In order to avoid temporary large structs on the stack,
allocate them dynamically.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Tal Alon <talal@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/mlx4/qp.c
drivers/net/ethernet/mellanox/mlx4/fw.c
drivers/net/ethernet/mellanox/mlx4/fw.h
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/qp.c
include/linux/mlx4/device.h