From 4511dec4b7220cde299f6c9dba0abe96686186c8 Mon Sep 17 00:00:00 2001 From: Olga Kornievskaia Date: Wed, 21 Dec 2011 16:50:54 -0500 Subject: [PATCH] [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. --- sys/nfs41_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/nfs41_driver.c b/sys/nfs41_driver.c index 0ce54d7..9c1d747 100644 --- a/sys/nfs41_driver.c +++ b/sys/nfs41_driver.c @@ -1715,7 +1715,7 @@ NTSTATUS nfs41_downcall( tmp->u.Acl.buf_len, NFS41_MM_POOLTAG); if (cur->u.Acl.buf == NULL) { cur->status = status = STATUS_INSUFFICIENT_RESOURCES; - goto out_free; + break; } RtlCopyMemory(cur->u.Acl.buf, buf, tmp->u.Acl.buf_len); if (tmp->u.Acl.buf_len > cur->u.Acl.buf_len)