]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
afs: Fix an off-by-one error in afs_send_pages()
authorDavid Howells <dhowells@redhat.com>
Thu, 16 Mar 2017 16:27:48 +0000 (16:27 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 16 Mar 2017 16:29:30 +0000 (16:29 +0000)
commit445783d0ec173a52bef2e9b129de7d716a19b9fa
treedaacf4666380115025fd3f6168d43de834d43b2b
parent7286a35e893176169b09715096a4aca557e2ccd2
afs: Fix an off-by-one error in afs_send_pages()

afs_send_pages() should only put the call into the AFS_CALL_AWAIT_REPLY
state if it has sent all the pages - but the check it makes is incorrect
and sometimes it will finish the loop early.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/rxrpc.c