[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:
Olga Kornievskaia 2011-12-21 16:50:54 -05:00
parent 517db12d34
commit 4511dec4b7

View file

@ -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)