freebsd-dev/sys/cddl/contrib/opensolaris
John Baldwin f27d3a8a72 Don't return early for non-failure for one of the EMLINK checks.
r326987 enabled two #if 0'd-out EMLINK checks in zfs_link_create() for
link overflow.  However, one of the checks (when the vnode adding a link
is a directory such as for mkdir) always returned even if the link did not
overflow.  Change this to only return early if it needs to report an
EMLINK error.

Reported by:	db, shurd
Sponsored by:	Chelsio Communications
2017-12-19 23:54:44 +00:00
..
common MFV r325605: 8713 Buffer overflow in dsl_dataset_name() 2017-11-09 18:12:21 +00:00
uts Don't return early for non-failure for one of the EMLINK checks. 2017-12-19 23:54:44 +00:00
OPENSOLARIS.LICENSE