linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] autofs4 - fix incorect return in autofs4_mount_busy()
@ 2009-04-23  7:34 Ian Kent
  2009-04-23  7:45 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Kent @ 2009-04-23  7:34 UTC (permalink / raw)
  To: Andrew Morton; +Cc: autofs mailing list, rhkernel-list, linux-fsdevel

This patch addresses bug 496766.

Fix an obvious incorect return status in autofs4_mount_busy().
---

 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 75f7dda..3077d8f 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 */


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-23 13:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-23  7:34 [PATCH] autofs4 - fix incorect return in autofs4_mount_busy() Ian Kent
2009-04-23  7:45 ` Andrew Morton
2009-04-23 13:50   ` Ian Kent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).