Re: [PATCH] sungem: limit reaches -1, but 0 tested
From: David Miller <davem@davemloft.net>
Date: 2009-02-03 07:20:21
Also in:
lkml
From: David Miller <davem@davemloft.net>
Date: 2009-02-03 07:20:21
Also in:
lkml
From: Roel Kluin <redacted> Date: Sun, 01 Feb 2009 18:15:27 +0100
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 <redacted>
Also applied, thanks.