freebsd-skq/sys/cddl
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
..
boot/zfs MFV r274273: 2014-11-10 08:20:21 +00:00
compat/opensolaris Add the arm64 defines for cddl code. 2015-04-01 08:31:56 +00:00
contrib/opensolaris Fix misuse of input argument in traverse_visitbp 2015-04-28 22:46:58 +00:00
dev Adjust PROF_ARTIFICIAL_FRAMES in the DTrace profile provider on ARM to 2015-04-25 15:43:12 +00:00