From: Colin Ian King Date: Sat, 17 May 2014 22:33:44 +0000 (+0100) Subject: IB/mlx4: fix unitialised variable is_mcast X-Git-Tag: omap-for-v3.16/fixes-against-rc1~68^2^7~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfdfcfee3c9281e9cd28c0b08235aba1762504a6;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed