From owner-svn-src-head@FreeBSD.ORG Fri Jun 28 20:32:49 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B7D449F3; Fri, 28 Jun 2013 20:32:49 +0000 (UTC) (envelope-from davide@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id AAA1B1479; Fri, 28 Jun 2013 20:32:49 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5SKWnAq086984; Fri, 28 Jun 2013 20:32:49 GMT (envelope-from davide@svn.freebsd.org) Received: (from davide@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5SKWnOQ086983; Fri, 28 Jun 2013 20:32:49 GMT (envelope-from davide@svn.freebsd.org) Message-Id: <201306282032.r5SKWnOQ086983@svn.freebsd.org> From: Davide Italiano Date: Fri, 28 Jun 2013 20:32:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r252355 - head/sys/fs/smbfs X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jun 2013 20:32:49 -0000 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)