freebsd-dev/sys/cddl/contrib/opensolaris/uts/common/fs
Steven Hartland aeb9d4dad9 Fix misuse of input argument in traverse_visitbp
In traverse_visitbp(), the input argument dnp is modified in the middle
to point to a temporary buffer. Originally this doesn't matter, because
no user of TRAVERSE_POST dereferences it. However, in fbeddd6 a piece of
code is added dereferencing dnp after the modification, creating a possible
bug.

We fix this by creating a new local variable cdnp for the DMU_OT_DNODE case,
so we don't modify the input argument. Also we introduce different local
variables in the DMU_OT_OBJSET case to prevent confusion between the input
argument.

Obtained from:	zfsonlinux (a585f2f844ed3d4270221fed88f5e494eb55d932)
MFC after:	2 weeks
Sponsored by:	Multiplay
2015-04-28 22:46:58 +00:00
..
zfs Fix misuse of input argument in traverse_visitbp 2015-04-28 22:46:58 +00:00
gfs.c Use the "zfs_gfs" tag for GFS vnodes to make them easier to identify. 2015-01-20 22:31:26 +00:00
vnode.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00