From: Christian Engelmayer Date: Sat, 17 May 2014 21:52:03 +0000 (+0200) Subject: net/mlx4_en: Fix uninitialized use of 'port_up' in mlx4_en_set_channels() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~194 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da26a625bfa8d12b789f12a107a2e389c236c362;p=pandora-kernel.git net/mlx4_en: Fix uninitialized use of 'port_up' in mlx4_en_set_channels() Function mlx4_en_set_channels() stops running ports before performing the requested action. In that case local variable 'port_up' is set so that the port is restarted at the end of the function, however, in case the port was not stopped, variable 'port_up' is left uninitialized and the behaviour is undetermined. Detected by Coverity - CID 751497. Signed-off-by: Christian Engelmayer Acked-By: Amir Vadai Signed-off-by: David S. Miller --- Reading git-diff-tree failed