From: Roel Kluin Date: Tue, 3 Feb 2009 07:19:50 +0000 (-0800) Subject: cassini/sungem: limit reaches -1, but 0 tested X-Git-Tag: v2.6.29-rc4~56^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff01b9163655ace76b29b7ff2f56b25c32f795da;p=pandora-kernel.git cassini/sungem: limit reaches -1, but 0 tested while (limit--) if (test()) break; if (limit <= 0) goto test_failed; In the last iteration, limit is decremented after the test to 0. If just thereafter test() succeeds and a break occurs, the goto still occurs because limit is 0. Signed-off-by: Roel Kluin Signed-off-by: David S. Miller --- Reading git-diff-tree failed