Windows: do not leak scp->dirlock if cm_BPlusDirBuildTree fails
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 9 Jan 2010 05:26:37 +0000 (00:26 -0500)
committerJeffrey Altman <jaltman|account-1000011@unknown>
Wed, 13 Jan 2010 05:56:27 +0000 (21:56 -0800)
commitedc39892cbf60eb2f918180f0b4c217ac3bd6dab
tree5d30a0a845012cca9412529c78ac102267f7de5e
parent6a96e0bf92e0a454e9d4fccf61402c033f374722
Windows: do not leak scp->dirlock if cm_BPlusDirBuildTree fails

In cm_BeginDirOp, the scp->dirlock would be leaked if
cm_BPlusDirBuildTree() failed.   This would either result in
a panic later on if lock order validation is active; or as
an inability to process subsequent requests on the directory.

LICENSE MIT

Change-Id: I03afd0c9e6296c0f43ae39e5a7b1ff29a1619a43
Reviewed-on: http://gerrit.openafs.org/1083
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Asanka Herath <asanka@secure-endpoints.com>
Tested-by: Asanka Herath <asanka@secure-endpoints.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/cm_dir.c