Change-Id: Iadc9652c03a2d3453addab759c9f8f0048929e2b
Found-by: clang static analyzer
Reviewed-on: http://gerrit.openafs.org/5233
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
if (glocked)
AFS_GUNLOCK();
- flags = 0;
- flags = LOCKLEAF;
+ flags = LOCKLEAF | MPSAFE; /* namei must take Giant if needed */
if (followlink)
flags |= FOLLOW;
else
flags |= NOFOLLOW;
- flags |= MPSAFE; /* namei must take Giant if needed */
NDINIT(&n, LOOKUP, flags, seg, aname, curthread);
if ((error = namei(&n)) != 0) {
if (glocked)