[driver] properly release upcall entry lock in downcall
if we fail to allocate memory while processing acl downcall, dont forget to release the lock on the entry before leaving the function.
This commit is contained in:
parent
517db12d34
commit
4511dec4b7
1 changed files with 1 additions and 1 deletions
|
|
@ -1715,7 +1715,7 @@ NTSTATUS nfs41_downcall(
|
||||||
tmp->u.Acl.buf_len, NFS41_MM_POOLTAG);
|
tmp->u.Acl.buf_len, NFS41_MM_POOLTAG);
|
||||||
if (cur->u.Acl.buf == NULL) {
|
if (cur->u.Acl.buf == NULL) {
|
||||||
cur->status = status = STATUS_INSUFFICIENT_RESOURCES;
|
cur->status = status = STATUS_INSUFFICIENT_RESOURCES;
|
||||||
goto out_free;
|
break;
|
||||||
}
|
}
|
||||||
RtlCopyMemory(cur->u.Acl.buf, buf, tmp->u.Acl.buf_len);
|
RtlCopyMemory(cur->u.Acl.buf, buf, tmp->u.Acl.buf_len);
|
||||||
if (tmp->u.Acl.buf_len > cur->u.Acl.buf_len)
|
if (tmp->u.Acl.buf_len > cur->u.Acl.buf_len)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue