Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jun 2013 20:32:49 +0000 (UTC)
From:      Davide Italiano <davide@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252355 - head/sys/fs/smbfs
Message-ID:  <201306282032.r5SKWnOQ086983@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306282032.r5SKWnOQ086983>