mlx4: Zero initialize device capabilities to avoid use of uninitialized fields.
Submitted by: hselasky@ Approved by: hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
601e19f00a
commit
65ad766f36
@ -2208,7 +2208,7 @@ static int mlx4_init_hca(struct mlx4_dev *dev)
|
|||||||
{
|
{
|
||||||
struct mlx4_priv *priv = mlx4_priv(dev);
|
struct mlx4_priv *priv = mlx4_priv(dev);
|
||||||
struct mlx4_adapter adapter;
|
struct mlx4_adapter adapter;
|
||||||
struct mlx4_dev_cap dev_cap;
|
struct mlx4_dev_cap dev_cap = {};
|
||||||
struct mlx4_profile profile;
|
struct mlx4_profile profile;
|
||||||
struct mlx4_init_hca_param init_hca;
|
struct mlx4_init_hca_param init_hca;
|
||||||
u64 icm_size;
|
u64 icm_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user