mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
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>
This commit is contained in:
parent
5423732a71
commit
fc0c3dd13b
1 changed files with 4 additions and 2 deletions
|
@ -1947,11 +1947,13 @@ out:
|
|||
atomic_inc(&clp->cl_refcount);
|
||||
switch (clp->cl_cb_state) {
|
||||
case NFSD4_CB_DOWN:
|
||||
seq->status_flags |= SEQ4_STATUS_CB_PATH_DOWN;
|
||||
seq->status_flags = SEQ4_STATUS_CB_PATH_DOWN;
|
||||
break;
|
||||
case NFSD4_CB_FAULT:
|
||||
seq->status_flags |= SEQ4_STATUS_BACKCHANNEL_FAULT;
|
||||
seq->status_flags = SEQ4_STATUS_BACKCHANNEL_FAULT;
|
||||
break;
|
||||
default:
|
||||
seq->status_flags = 0;
|
||||
}
|
||||
}
|
||||
kfree(conn);
|
||||
|
|
Loading…
Reference in a new issue