]> Git Repo - linux.git/blobdiff - fs/nfs/nfs42xdr.c
ASoC: sof_es8336: reduce pop noise on speaker
[linux.git] / fs / nfs / nfs42xdr.c
index b56f05113d367d6ecfb2f4827e0bac892f8a2193..fe1aeb0f048f2b73bf2fbc92d0771fefac1b1716 100644 (file)
@@ -569,6 +569,14 @@ static int decode_listxattrs(struct xdr_stream *xdr,
                 */
                if (status == -ETOOSMALL)
                        status = -ERANGE;
+               /*
+                * Special case: for LISTXATTRS, NFS4ERR_NOXATTR
+                * should be translated to success with zero-length reply.
+                */
+               if (status == -ENODATA) {
+                       res->eof = true;
+                       status = 0;
+               }
                goto out;
        }
 
This page took 0.037825 seconds and 4 git commands to generate.