Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2016 17:34:33 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org
Subject:   svn commit: r308224 - vendor-sys/illumos/dist/common/nvpair
Message-ID:  <201611021734.uA2HYXhr016969@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Wed Nov  2 17:34:33 2016
New Revision: 308224
URL: https://svnweb.freebsd.org/changeset/base/308224

Log:
  5778 nvpair_type_is_array() does not recognize DATA_TYPE_INT8_ARRAY
  
  illumos/illumos-gate@bf4d553b8a4685dc5ba4549cc9ba6d94e9306a81
  https://github.com/illumos/illumos-gate/commit/bf4d553b8a4685dc5ba4549cc9ba6d94e9306a81
  
  https://www.illumos.org/issues/5778
    DATA_TYPE_INT8_ARRAY is missing from the array check in nvpair_type_is_array()
  
  Reviewed by: Matthew Ahrens <mahrens@delphix.com>
  Reviewed by: Prakash Surya <prakash.surya@delphix.com>
  Approved by: Dan McDonald <danmcd@omniti.com>
  Author: Andriy Gapon <avg@icyb.net.ua>

Modified:
  vendor-sys/illumos/dist/common/nvpair/nvpair.c

Modified: vendor-sys/illumos/dist/common/nvpair/nvpair.c
==============================================================================
--- vendor-sys/illumos/dist/common/nvpair/nvpair.c	Wed Nov  2 17:33:22 2016	(r308223)
+++ vendor-sys/illumos/dist/common/nvpair/nvpair.c	Wed Nov  2 17:34:33 2016	(r308224)
@@ -1230,6 +1230,7 @@ nvpair_type_is_array(nvpair_t *nvp)
 	data_type_t type = NVP_TYPE(nvp);
 
 	if ((type == DATA_TYPE_BYTE_ARRAY) ||
+	    (type == DATA_TYPE_INT8_ARRAY) ||
 	    (type == DATA_TYPE_UINT8_ARRAY) ||
 	    (type == DATA_TYPE_INT16_ARRAY) ||
 	    (type == DATA_TYPE_UINT16_ARRAY) ||



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611021734.uA2HYXhr016969>