diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2014-03-23 23:56:59 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-03-28 21:23:40 -0400 |
commit | 3f42d2c428c724212c5f4249daea97e254eb0546 (patch) | |
tree | 34ffdd877fb5c7a7ce8a0cfeef89e471e47e8b13 /fs/nfsd/nfs4state.c | |
parent | 315f3812dbd92c7c8f26a8dbba183266ec219795 (diff) |
NFSD: Using free_conn free connection
Connection from alloc_conn must be freed through free_conn,
otherwise, the reference of svc_xprt will never be put.
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 7415eac36501..5a9588e55f2e 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -2287,7 +2287,8 @@ out: | |||
2287 | if (!list_empty(&clp->cl_revoked)) | 2287 | if (!list_empty(&clp->cl_revoked)) |
2288 | seq->status_flags |= SEQ4_STATUS_RECALLABLE_STATE_REVOKED; | 2288 | seq->status_flags |= SEQ4_STATUS_RECALLABLE_STATE_REVOKED; |
2289 | out_no_session: | 2289 | out_no_session: |
2290 | kfree(conn); | 2290 | if (conn) |
2291 | free_conn(conn); | ||
2291 | spin_unlock(&nn->client_lock); | 2292 | spin_unlock(&nn->client_lock); |
2292 | return status; | 2293 | return status; |
2293 | out_put_session: | 2294 | out_put_session: |