Skip to content

Commit 764ad8b

Browse files
jtlaytontrondmypd
authored andcommitted
nfs: increase size of EXCHANGE_ID name string buffer
The current buffer is much too small if you have a relatively long hostname. Bring it up to the size of the one that SETCLIENTID has. Cc: <stable@vger.kernel.org> Reported-by: Michael Skralivetsky <michael.skralivetsky@primarydata.com> Signed-off-by: Jeff Layton <jeff.layton@primarydata.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
1 parent 455b6ee commit 764ad8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/nfs_xdr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ struct nfs41_state_protection {
11421142
struct nfs4_op_map allow;
11431143
};
11441144

1145-
#define NFS4_EXCHANGE_ID_LEN (48)
1145+
#define NFS4_EXCHANGE_ID_LEN (127)
11461146
struct nfs41_exchange_id_args {
11471147
struct nfs_client *client;
11481148
nfs4_verifier *verifier;

0 commit comments

Comments
 (0)