1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

udf_vnops: cosmetic followup to r208671 - better looking code

Suggested by:	jhb
MFC after:	3 days
This commit is contained in:
Andriy Gapon 2010-06-22 08:22:25 +00:00
parent 3f8ed583e6
commit 12b3a08d09
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209425

View File

@ -904,8 +904,8 @@ udf_readlink(struct vop_readlink_args *ap)
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;