Revision ff01b9163655ace76b29b7ff2f56b25c32f795da authored by Roel Kluin on 03 February 2009, 07:19:50 UTC, committed by David S. Miller on 03 February 2009, 07:19:50 UTC
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 <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 46578a6
Raw File
00-INDEX
00-INDEX
	- this file.
README
	- general information about /proc/sys/ sysctl files.
abi.txt
	- documentation for /proc/sys/abi/*.
ctl_unnumbered.txt
	- explanation of why one should not add new binary sysctl numbers.
fs.txt
	- documentation for /proc/sys/fs/*.
kernel.txt
	- documentation for /proc/sys/kernel/*.
sunrpc.txt
	- documentation for /proc/sys/sunrpc/*.
vm.txt
	- documentation for /proc/sys/vm/*.
back to top