]> git.baikalelectronics.ru Git - kernel.git/commit
NFSD: Fix bad checking of space for padding in splice read
authorKinglong Mee <kinglongmee@gmail.com>
Wed, 9 Jul 2014 13:51:27 +0000 (21:51 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 11 Jul 2014 19:19:25 +0000 (15:19 -0400)
commit971c9e221a9dae56e0137d042c28b8919a6c60c4
tree702bde6d9f9810740dd7fe6e63726aedfbe33ac3
parentf197585778e67bc2fc2170fec99d9bd26582247b
NFSD: Fix bad checking of space for padding in splice read

Note that the caller has already reserved space for count and eof, so
xdr->p has already moved past them, only the padding remains.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Fixes 5cd2e2935a (nfsd4: separate splice and readv cases)
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c