[PATCH] Infinite loop/always true check possible with unsigned counter.

Manish Ahuja ahuja at austin.ibm.com
Tue Jul 10 03:31:31 EST 2007


Fix to correct a possible infinite loop or an always true check 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--)

Signed-off-by: Manish Ahuja <ahuja at us.ibm.com>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unsigned
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20070709/e483846e/attachment.txt>


More information about the Linuxppc-dev mailing list