Author: davide
Date: Fri Jun 28 20:32:48 2013
New Revision: 252355
URL: http://svnweb.freebsd.org/changeset/base/252355

Log:
  Properly use v_data field. This magically worked (even if wrong) until
  now because v_data is the first field of the structure, but it's not
  something we should rely on.

Modified:
  head/sys/fs/smbfs/smbfs_node.c

Modified: head/sys/fs/smbfs/smbfs_node.c
==============================================================================
--- head/sys/fs/smbfs/smbfs_node.c      Fri Jun 28 20:21:13 2013        
(r252354)
+++ head/sys/fs/smbfs/smbfs_node.c      Fri Jun 28 20:32:48 2013        
(r252355)
@@ -89,7 +89,7 @@ smbfs_vnode_cmp(struct vnode *vp, void *
        struct smbnode *np;
        struct smbcmp *sc;
 
-       np = (struct smbnode *) vp;
+       np = (struct smbnode *) vp->v_data;
        sc = (struct smbcmp *) _sc;
        if (np->n_parent != sc->n_parent || np->n_nmlen != sc->n_nmlen ||
            bcmp(sc->n_name, np->n_name, sc->n_nmlen) != 0)
_______________________________________________
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