From: David Howells Date: Fri, 11 May 2007 05:22:19 +0000 (-0700) Subject: AFS: fix interminable loop in afs_write_back_from_locked_page() X-Git-Tag: v2.6.22-rc1~98 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d577b6a31a53a19d3b0fe414d645a61ef201846;p=pandora-kernel.git AFS: fix interminable loop in afs_write_back_from_locked_page() Following bug was uncovered by compiling with '-W' flag: CC [M] fs/afs/write.o fs/afs/write.c: In function ‘afs_write_back_from_locked_page’: fs/afs/write.c:398: warning: comparison of unsigned expression >= 0 is always true Loop variable 'n' is unsigned, so wraps around happily as far as I can see. Trival fix attached (compile tested only). Signed-off-by: Mika Kukkonen Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed