David Howells 9d577b6a31 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 <mikukkon@iki.fi>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-11 08:29:32 -07:00
..
2007-05-10 09:26:52 -07:00
2007-04-26 15:59:35 -07:00
2007-04-26 15:49:28 -07:00
2007-05-09 12:30:50 -07:00
2007-04-26 15:57:07 -07:00
2007-05-09 12:30:50 -07:00
2007-05-09 12:30:50 -07:00
2007-05-10 09:26:52 -07:00
2007-05-09 12:30:50 -07:00
2007-05-09 12:30:50 -07:00
2007-05-09 12:30:50 -07:00
2007-05-10 09:26:52 -07:00
2007-05-09 12:30:50 -07:00
2007-05-09 12:30:50 -07:00
2007-04-26 15:57:07 -07:00
2007-04-26 15:59:35 -07:00