Author: jhb
Date: Tue Feb 17 15:58:42 2009
New Revision: 188717
URL: http://svn.freebsd.org/changeset/base/188717

Log:
  MFC: Fix a bug in the previous change to the mtab handler: use the path
  returned by vn_fullpath() when vn_fullpath() succeeds instead of when it
  fails.

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/compat/linprocfs/linprocfs.c
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/dev/ath/ath_hal/   (props changed)
  stable/7/sys/dev/cxgb/   (props changed)

Modified: stable/7/sys/compat/linprocfs/linprocfs.c
==============================================================================
--- stable/7/sys/compat/linprocfs/linprocfs.c   Tue Feb 17 15:54:09 2009        
(r188716)
+++ stable/7/sys/compat/linprocfs/linprocfs.c   Tue Feb 17 15:58:42 2009        
(r188717)
@@ -317,7 +317,7 @@ linprocfs_domtab(PFS_FILL_ARGS)
        error = namei(&nd);
        lep = linux_emul_path;
        if (error == 0) {
-               if (vn_fullpath(td, nd.ni_vp, &dlep, &flep) != 0)
+               if (vn_fullpath(td, nd.ni_vp, &dlep, &flep) == 0)
                        lep = dlep;
                vrele(nd.ni_vp);
                VFS_UNLOCK_GIANT(NDHASGIANT(&nd));
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to