OSDN Git Service

net/mlx4_core: Fix unintialized variable used in error path
authorCarol L Soto <clsoto@linux.vnet.ibm.com>
Thu, 27 Aug 2015 19:43:26 +0000 (14:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Aug 2015 23:40:27 +0000 (16:40 -0700)
commitb0f6446377e72bcabafe83d29bf6a2f6dd19d0b0
tree2ee03880361fea79f2b7eed8b1b26c6d9728eb22
parent9293267a3e2a7a2555d8ddc8f9301525e5b03b1b
net/mlx4_core: Fix unintialized variable used in error path

The uninitialized value name in mlx4_en_activate_cq was used in order
to print an error message. Fixing it by replacing it with cq->vector.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Carol L Soto <clsoto@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_cq.c