From owner-svn-src-all@FreeBSD.ORG Tue Jun 22 08:22:25 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD9991065670; Tue, 22 Jun 2010 08:22:25 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9D36C8FC1B; Tue, 22 Jun 2010 08:22:25 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o5M8MPJo087060; Tue, 22 Jun 2010 08:22:25 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o5M8MPVR087058; Tue, 22 Jun 2010 08:22:25 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201006220822.o5M8MPVR087058@svn.freebsd.org> From: Andriy Gapon Date: Tue, 22 Jun 2010 08:22:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r209425 - head/sys/fs/udf X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jun 2010 08:22:25 -0000 Author: avg Date: Tue Jun 22 08:22:25 2010 New Revision: 209425 URL: http://svn.freebsd.org/changeset/base/209425 Log: udf_vnops: cosmetic followup to r208671 - better looking code Suggested by: jhb MFC after: 3 days Modified: head/sys/fs/udf/udf_vnops.c Modified: head/sys/fs/udf/udf_vnops.c ============================================================================== --- head/sys/fs/udf/udf_vnops.c Tue Jun 22 08:17:55 2010 (r209424) +++ head/sys/fs/udf/udf_vnops.c Tue Jun 22 08:22:25 2010 (r209425) @@ -904,8 +904,8 @@ udf_readlink(struct vop_readlink_args *a vp = ap->a_vp; node = VTON(vp); len = le64toh(node->fentry->inf_len); + buf = malloc(len, M_DEVBUF, M_WAITOK); iov[0].iov_len = len; - buf = malloc(iov[0].iov_len, M_DEVBUF, M_WAITOK); iov[0].iov_base = buf; uio.uio_iov = iov; uio.uio_iovcnt = 1;