svn commit: r252355 - head/sys/fs/smbfs
Davide Italiano
davide at FreeBSD.org
Fri Jun 28 20:32:49 UTC 2013
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)
More information about the svn-src-all
mailing list