diff options
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index c513bbdf2d36..9547ab636274 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -1201,7 +1201,7 @@ nfsd4_decode_compound(struct nfsd4_compoundargs *argp) | |||
1201 | *p++ = htonl((u32)((n) >> 32)); \ | 1201 | *p++ = htonl((u32)((n) >> 32)); \ |
1202 | *p++ = htonl((u32)(n)); \ | 1202 | *p++ = htonl((u32)(n)); \ |
1203 | } while (0) | 1203 | } while (0) |
1204 | #define WRITEMEM(ptr,nbytes) do { \ | 1204 | #define WRITEMEM(ptr,nbytes) do if (nbytes > 0) { \ |
1205 | *(p + XDR_QUADLEN(nbytes) -1) = 0; \ | 1205 | *(p + XDR_QUADLEN(nbytes) -1) = 0; \ |
1206 | memcpy(p, ptr, nbytes); \ | 1206 | memcpy(p, ptr, nbytes); \ |
1207 | p += XDR_QUADLEN(nbytes); \ | 1207 | p += XDR_QUADLEN(nbytes); \ |