Skip to content

Commit

Permalink
mlx5_core: Variable may be used uninitialized
Browse files Browse the repository at this point in the history
In the sq_overhead() function, if qp_typ is equal to IB_QPT_RC, size
will be used uninitialized.

Signed-off-by: Andi Shyti <andi@etezian.org>
Acked-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
  • Loading branch information
Andi Shyti authored and Roland Dreier committed Jul 31, 2013
1 parent cd23b14 commit 618af38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/mlx5/qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static int set_rq_size(struct mlx5_ib_dev *dev, struct ib_qp_cap *cap,

static int sq_overhead(enum ib_qp_type qp_type)
{
int size;
int size = 0;

switch (qp_type) {
case IB_QPT_XRC_INI:
Expand Down

0 comments on commit 618af38

Please sign in to comment.