Skip to content

Commit e8380c2

Browse files
Olga KornievskaiaAnna Schumaker
authored andcommitted
NFSv4.2: fix COPY_NOTIFY xdr buf size calculation
We need to include sequence size in the compound. Fixes: 0491567 ("NFS: add COPY_NOTIFY operation") Signed-off-by: Olga Kornievskaia <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent aa9e4ad commit e8380c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/nfs/nfs42xdr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,11 @@
144144
decode_putfh_maxsz + \
145145
decode_offload_cancel_maxsz)
146146
#define NFS4_enc_copy_notify_sz (compound_encode_hdr_maxsz + \
147+
encode_sequence_maxsz + \
147148
encode_putfh_maxsz + \
148149
encode_copy_notify_maxsz)
149150
#define NFS4_dec_copy_notify_sz (compound_decode_hdr_maxsz + \
151+
decode_sequence_maxsz + \
150152
decode_putfh_maxsz + \
151153
decode_copy_notify_maxsz)
152154
#define NFS4_enc_deallocate_sz (compound_encode_hdr_maxsz + \

0 commit comments

Comments
 (0)