Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8985f3a authored by Ian Kent's avatar Ian Kent Committed by Linus Torvalds
Browse files

autofs4: fix incorrect return in autofs4_mount_busy()



Fix an obvious incorrect return status in autofs4_mount_busy().

Signed-off-by: default avatarIan Kent <raven@themaw.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bc43f75c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -70,9 +70,11 @@ 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 */
	if (!may_umount_tree(mnt)) {