deleg: release reference in nfs41_delegation_getattr()
Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
parent
75c96068e9
commit
294f30baec
1 changed files with 4 additions and 2 deletions
|
|
@ -801,7 +801,7 @@ int nfs41_delegation_getattr(
|
|||
}
|
||||
ReleaseSRWLockShared(&deleg->lock);
|
||||
if (status)
|
||||
goto out;
|
||||
goto out_deleg;
|
||||
|
||||
ZeroMemory(info, sizeof(nfs41_file_info));
|
||||
|
||||
|
|
@ -810,8 +810,10 @@ int nfs41_delegation_getattr(
|
|||
client_name_cache(client), fileid, info);
|
||||
if (status) {
|
||||
status = NFS4ERR_BADHANDLE;
|
||||
goto out;
|
||||
goto out_deleg;
|
||||
}
|
||||
out_deleg:
|
||||
nfs41_delegation_deref(deleg);
|
||||
out:
|
||||
dprintf(DGLVL, "<-- nfs41_delegation_getattr() returning %s\n",
|
||||
nfs_error_string(status));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue