Skip to contentSkip to conversation

autofs4 - fix incorect return in autofs4_mount_busy()

PATCH In review Ian Kent 2 participants 3 messages Apr 23, 2009

Subsystems (2)
lore
Share & tools
lore

Ian Kent

author maintainer
#0 lore raw

PATCH 1/1 autofs4 - fix incorect return in autofs4_mount_busy()

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(-)
fs/autofs4/expire.c +3 -1
index 75f7dda..3077d8f 100644
@@ -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 */
author maintainer
#2 lore raw
Quoted 10 lines · Andrew Morton
Quoted 1 line · On Thu, 23 Apr 2009 15:34:52 +0800 Ian Kent <[email protected]> wrote:

This patch addresses bug 496766.

In which tracking system?

Please prefer to provide the full URL. I use the form:

Addresses http://....496766

I'm asleep today, that was never meant for the public post, it refers to a Redhat bug that has no additional information.

And there was no Signed-off-by, sorry, ;)

Ian