aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2007-05-10 22:22:19 -0700
committerLinus Torvalds <[email protected]>2007-05-11 08:29:32 -0700
commit9d577b6a31a53a19d3b0fe414d645a61ef201846 (patch)
tree3e2523ac386e16eb0b125f3933b9ebfbd03aed65 /include/linux
parent9393e1dc8e394bd59217178b26b2476dc43e8667 (diff)
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 <[email protected]> Signed-off-by: David Howells <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions