Windows: AFSShareWrite do not assign pFcb too soon
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 10 Feb 2014 10:13:37 +0000 (05:13 -0500)
committerJeffrey Altman <jaltman@your-file-system.com>
Mon, 17 Mar 2014 21:10:07 +0000 (14:10 -0700)
commit939784c017f065a2f4fce19b48cdde56ac4be83c
tree153ee9bcf10d67533b5b8e11fe1e2729214d48d7
parent01a7c64e472c241798306e7f8137de28efdef37e
Windows: AFSShareWrite do not assign pFcb too soon

In AFSShareWrite the value of pFcb is used to determine whether
or not the pfcb->NPFcb->Resource must be released upon exit.
Therefore, it must not be assigned a value until just before the
resource is acquired.

Change-Id: I6951d91fcf672c8d236d19e075fff0be3552c9b8
Reviewed-on: http://gerrit.openafs.org/10828
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsrdr/kernel/lib/AFSWrite.cpp