diff options
author | Ian Kent <raven@themaw.net> | 2009-05-01 00:08:09 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-05-03 00:36:09 +0200 |
commit | a8985f3ac503b51c5abf8883fc4fb912e13b955c (patch) | |
tree | db5e81738c8dcfe62e3bf2132c35246b7d88429d /fs | |
parent | mm: fix pageref leak in do_swap_page() (diff) | |
download | linux-a8985f3ac503b51c5abf8883fc4fb912e13b955c.tar.xz linux-a8985f3ac503b51c5abf8883fc4fb912e13b955c.zip |
autofs4: fix incorrect return in autofs4_mount_busy()
Fix an obvious incorrect return status in autofs4_mount_busy().
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/autofs4/expire.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/autofs4/expire.c b/fs/autofs4/expire.c index 75f7ddacf7d6..3077d8f16523 100644 --- a/fs/autofs4/expire.c +++ b/fs/autofs4/expire.c @@ -70,8 +70,10 @@ static int autofs4_mount_busy(struct vfsmount *mnt, struct dentry *dentry) * Otherwise it's an offset mount and we need to check * if we can umount its mount, if there is one. */ - if (!d_mountpoint(dentry)) + if (!d_mountpoint(dentry)) { + status = 0; goto done; + } } /* Update the expiry counter if fs is busy */ |