Files
linux/fs/nfsd
J. Bruce Fields 0a1246ed50 nfsd4: zero-length WRITE should succeed
commit fdec6114ee upstream.

Zero-length writes are legal; from 5661 section 18.32.3: "If the count
is zero, the WRITE will succeed and return a count of zero subject to
permissions checking".

This check is unnecessary and is causing zero-length reads to return
EINVAL.

Cc: stable@vger.kernel.org
Fixes: 3fd9557aec "NFSD: Refactor the generic write vector fill helper"
Cc: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-13 09:24:07 +01:00
..
2014-07-08 17:14:27 -04:00
2018-09-25 20:34:54 -04:00
2018-08-09 16:11:21 -04:00
2018-09-25 20:34:54 -04:00
2018-09-25 20:34:54 -04:00
2018-09-25 20:34:54 -04:00
2018-08-09 16:11:21 -04:00
2018-09-25 20:34:54 -04:00
2018-04-03 15:08:15 -04:00
2018-09-25 20:34:54 -04:00
2018-09-25 20:34:54 -04:00