aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorColin Ian King2014-05-17 23:33:44 +0100
committerRoland Dreier2014-05-28 10:00:06 -0700
commitbfdfcfee3c9281e9cd28c0b08235aba1762504a6 (patch)
tree890d6235d78856061b8d3339a9338db4d1a30c1a /lib
parentd6d211db37e75de2ddc3a4f979038c40df7cc79c (diff)
IB/mlx4: fix unitialised variable is_mcast
Commit 297e0dad7206 ("IB/mlx4: Handle Ethernet L2 parameters for IP based GID addressing") introduced a bug where is_mcast is now no longer initialized on the non-multicast condition and so it can be any random value from the stack. This issue was detected by cppcheck: [drivers/infiniband/hw/mlx4/ah.c:103]: (error) Uninitialized variable: is_mcast Simple fix is to initialise is_mcast to zero. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions