Skip to content

Commit

Permalink
Merge tag 'nfsd-4.13-1' of git://linux-nfs.org/~bfields/linux
Browse files Browse the repository at this point in the history
Pull nfsd fix from Bruce Fields:
 "One fix for a problem introduced in the most recent merge window and
  found by Dave Jones and KASAN"

* tag 'nfsd-4.13-1' of git://linux-nfs.org/~bfields/linux:
  nfsd: Fix a memory scribble in the callback channel
  • Loading branch information
torvalds committed Jul 18, 2017
2 parents cb8c65c + eff7936 commit 15b0a8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/nfsd/nfs4callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,8 @@ static const struct rpc_version nfs_cb_version4 = {
.counts = nfs4_cb_counts,
};

static const struct rpc_version *nfs_cb_version[] = {
&nfs_cb_version4,
static const struct rpc_version *nfs_cb_version[2] = {
[1] = &nfs_cb_version4,
};

static const struct rpc_program cb_program;
Expand Down Expand Up @@ -795,7 +795,7 @@ static int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *c
.saddress = (struct sockaddr *) &conn->cb_saddr,
.timeout = &timeparms,
.program = &cb_program,
.version = 0,
.version = 1,
.flags = (RPC_CLNT_CREATE_NOPING | RPC_CLNT_CREATE_QUIET),
};
struct rpc_clnt *client;
Expand Down

0 comments on commit 15b0a8d

Please sign in to comment.