diff options
author | davide <davide@FreeBSD.org> | 2013-06-28 20:32:48 +0000 |
---|---|---|
committer | davide <davide@FreeBSD.org> | 2013-06-28 20:32:48 +0000 |
commit | a0c5d96b0afd2c5fdf7e4ffe2c4c54b832a5dbf2 (patch) | |
tree | 28ae121af8cd85865727be98c853a967eff86325 /sys/fs | |
parent | 2ce84556daceb0829383a68b9e22cf666ab69662 (diff) | |
download | FreeBSD-src-a0c5d96b0afd2c5fdf7e4ffe2c4c54b832a5dbf2.zip FreeBSD-src-a0c5d96b0afd2c5fdf7e4ffe2c4c54b832a5dbf2.tar.gz |
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.
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/smbfs/smbfs_node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/smbfs/smbfs_node.c b/sys/fs/smbfs/smbfs_node.c index 481fa1d..1b55ff3 100644 --- a/sys/fs/smbfs/smbfs_node.c +++ b/sys/fs/smbfs/smbfs_node.c @@ -89,7 +89,7 @@ smbfs_vnode_cmp(struct vnode *vp, void *_sc) 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) |