Module Name:    src
Committed By:   hannken
Date:           Mon May 13 08:16:56 UTC 2019

Modified Files:
        src/sys/kern: vfs_trans.c

Log Message:
Walk down to the lowest mount for "fli_alias".

Address PR kern/54195 (null mounts: panic: ...).


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/kern/vfs_trans.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/vfs_trans.c
diff -u src/sys/kern/vfs_trans.c:1.59 src/sys/kern/vfs_trans.c:1.60
--- src/sys/kern/vfs_trans.c:1.59	Mon Apr 15 13:01:08 2019
+++ src/sys/kern/vfs_trans.c	Mon May 13 08:16:56 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_trans.c,v 1.59 2019/04/15 13:01:08 hannken Exp $	*/
+/*	$NetBSD: vfs_trans.c,v 1.60 2019/05/13 08:16:56 hannken Exp $	*/
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_trans.c,v 1.59 2019/04/15 13:01:08 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_trans.c,v 1.60 2019/05/13 08:16:56 hannken Exp $");
 
 /*
  * File system transaction operations.
@@ -383,7 +383,9 @@ fstrans_alloc_lwp_info(struct mount *mp)
 	fli->fli_mount = mp;
 	fli->fli_mountinfo = fmi;
 	fmi->fmi_ref_cnt += 1;
-	mp = mp->mnt_lower;
+	do {
+		mp = mp->mnt_lower;
+	} while (mp && mp->mnt_lower);
 	mutex_exit(&fstrans_mount_lock);
 
 	if (mp) {

Reply via email to