]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Fix loop with unsigned long counter variable
authorManish Ahuja <ahuja@austin.ibm.com>
Mon, 9 Jul 2007 19:03:45 +0000 (05:03 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 26 Jul 2007 06:12:17 +0000 (16:12 +1000)
commit56d6d1a73d9e5ddd9eb1a7baeeda30803ba44879
treeee62e972dd751737d93d7a6d14b908b99067d391
parent77926826f301fbd8ed96d3cd9ff17a5b59560dfb
[POWERPC] Fix loop with unsigned long counter variable

This fixes a possible infinite loop when the unsigned long counter "i"
is used in lmb_add_region() in the following for loop:

for (i = rgn->cnt-1; i >= 0; i--)

by making the loop counter "i" be signed.

Signed-off-by: Manish Ahuja <ahuja@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/lmb.c