From ce65f8d26da1f453c411797d10d41606c62a35d3 Mon Sep 17 00:00:00 2001 From: Ian Kent Date: Thu, 1 May 2008 04:35:07 -0700 Subject: [PATCH] --- yaml --- r: 95677 b: refs/heads/master c: cab0936aac8aa907c6bb814c2cf26385478f254b h: refs/heads/master i: 95675: 89b9b0c8da4a1294d6759992ce7752f5570589c6 v: v3 --- [refs] | 2 +- trunk/fs/autofs4/waitq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 37afee3a6fbd..5a2d2b71a715 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: afec570c32a0d116e3c68af583ed1d11110f12fc +refs/heads/master: cab0936aac8aa907c6bb814c2cf26385478f254b diff --git a/trunk/fs/autofs4/waitq.c b/trunk/fs/autofs4/waitq.c index 1fe28e4754c2..75e5955c3f6d 100644 --- a/trunk/fs/autofs4/waitq.c +++ b/trunk/fs/autofs4/waitq.c @@ -171,7 +171,7 @@ static int autofs4_getpath(struct autofs_sb_info *sbi, for (tmp = dentry ; tmp != root ; tmp = tmp->d_parent) len += tmp->d_name.len + 1; - if (--len > NAME_MAX) { + if (!len || --len > NAME_MAX) { spin_unlock(&dcache_lock); return 0; }