]> git.baikalelectronics.ru Git - kernel.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)
commit8d1553335a3d64140814e6acd98d0a9a8da37c38
treedaacf4666380115025fd3f6168d43de834d43b2b
parent4d153dd3a253fa2ab2f03ebd603208e8cf6dd8b1
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