Date: Tue, 22 Jun 2010 08:22:25 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r209425 - head/sys/fs/udf Message-ID: <201006220822.o5M8MPVR087058@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006220822.o5M8MPVR087058>