From fd21e7fbfd34a1c681ff96746478b0c136b35726 Mon Sep 17 00:00:00 2001 From: Olga Kornievskaia Date: Wed, 21 Dec 2011 16:15:26 -0500 Subject: [PATCH] [driver] stop impersonating client even if it's a lost upcall --- sys/nfs41_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/nfs41_driver.c b/sys/nfs41_driver.c index 0895063..1e4a1fd 100644 --- a/sys/nfs41_driver.c +++ b/sys/nfs41_driver.c @@ -1540,14 +1540,14 @@ NTSTATUS nfs41_downcall( } pEntry = pEntry->Flink; } - ExReleaseFastMutex(&downcallLock); + ExReleaseFastMutex(&downcallLock); + SeStopImpersonatingClient(); if (!found) { print_error("Didn't find xid=%d entry\n", tmp->xid); goto out_free; } - ExAcquireFastMutex(&cur->lock); - SeStopImpersonatingClient(); + ExAcquireFastMutex(&cur->lock); if (cur->state == NFS41_NOT_WAITING) { print_error("[downcall] Nobody is waiting for this request!!!\n"); ExReleaseFastMutex(&cur->lock);