]> 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)
commit8349fe5bd29c2c850ec3b67b17a58eedcab48b98
treedaacf4666380115025fd3f6168d43de834d43b2b
parenta3027bcbf0d5b0d7fa8b7e22892fd964b29118ab
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