aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@tonian.com>2011-10-19 22:13:06 -0400
committerJ. Bruce Fields <bfields@redhat.com>2011-10-24 04:24:28 -0400
commitfc0c3dd13bac0675cdedc4e0d0641aa8a22e82de (patch)
treee5762e78be340718fc90aa1fc8660124293460e3 /fs/nfsd/nfs4state.c
parent5423732a71577f7860c56a4eea2c34ff162ddd73 (diff)
nfsd4: seq->status_flags may be used unitialized
Reported-by: Gopala Suryanarayana <gsuryanarayana@vmware.com> Signed-off-by: Benny Halevy <bhalevy@tonian.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index b51ad43b7ea1..1527aaffb000 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1947,11 +1947,13 @@ out:
1947 atomic_inc(&clp->cl_refcount); 1947 atomic_inc(&clp->cl_refcount);
1948 switch (clp->cl_cb_state) { 1948 switch (clp->cl_cb_state) {
1949 case NFSD4_CB_DOWN: 1949 case NFSD4_CB_DOWN:
1950 seq->status_flags |= SEQ4_STATUS_CB_PATH_DOWN; 1950 seq->status_flags = SEQ4_STATUS_CB_PATH_DOWN;
1951 break; 1951 break;
1952 case NFSD4_CB_FAULT: 1952 case NFSD4_CB_FAULT:
1953 seq->status_flags |= SEQ4_STATUS_BACKCHANNEL_FAULT; 1953 seq->status_flags = SEQ4_STATUS_BACKCHANNEL_FAULT;
1954 break; 1954 break;
1955 default:
1956 seq->status_flags = 0;
1955 } 1957 }
1956 } 1958 }
1957 kfree(conn); 1959 kfree(conn);