From: Geert Uytterhoeven Date: Thu, 23 Oct 2014 08:25:53 +0000 (+0200) Subject: drivers: net: xgene: Rewrite buggy loop in xgene_enet_ecc_init() X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~25^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b71e821de50f0ff92f10f33064ee1713e9014158;p=pandora-kernel.git drivers: net: xgene: Rewrite buggy loop in xgene_enet_ecc_init() drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c: In function ‘xgene_enet_ecc_init’: drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c:126: warning: ‘data’ may be used uninitialized in this function Depending on the arbitrary value on the stack, the loop may terminate too early, and cause a bogus -ENODEV failure. Signed-off-by: Geert Uytterhoeven Signed-off-by: David S. Miller --- Reading git-diff-tree failed