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>
This commit is contained in:
Kinglong Mee 2014-03-24 11:56:59 +08:00 committed by J. Bruce Fields
parent 315f3812db
commit 3f42d2c428
1 changed files with 2 additions and 1 deletions

View File

@ -2287,7 +2287,8 @@ out:
if (!list_empty(&clp->cl_revoked))
seq->status_flags |= SEQ4_STATUS_RECALLABLE_STATE_REVOKED;
out_no_session:
kfree(conn);
if (conn)
free_conn(conn);
spin_unlock(&nn->client_lock);
return status;
out_put_session: