aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/spa.c
diff options
context:
space:
mode:
authorJorgen Lundman <[email protected]>2016-01-26 18:02:04 -0800
committerBrian Behlendorf <[email protected]>2016-01-28 12:46:04 -0500
commit4b9ed698b4838a36daa591d08728a692095f8f01 (patch)
tree8587ee6c966b31caf577ec3faf6fe7fb5400b333 /module/zfs/spa.c
parente56766360bd392bf9b8e5b9c2285ed35e1a066ea (diff)
Illumos 6527 - Possible access beyond end of string in zpool comment
6527 Possible access beyond end of string in zpool comment Reviewed by: George Wilson <[email protected]> Reviewed by: Matthew Ahrens <[email protected]> Reviewed by: Dan McDonald <[email protected]> Approved by: Gordon Ross <[email protected]> References: https://www.illumos.org/issues/6527 https://github.com/illumos/illumos-gate/commit/2bd7a8d Ported-by: Brian Behlendorf <[email protected]> Signed-off-by: Chunwei Chen <[email protected]>
Diffstat (limited to 'module/zfs/spa.c')
-rw-r--r--module/zfs/spa.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/module/zfs/spa.c b/module/zfs/spa.c
index ea4eb9f9a..34a317fbe 100644
--- a/module/zfs/spa.c
+++ b/module/zfs/spa.c
@@ -588,7 +588,6 @@ spa_prop_validate(spa_t *spa, nvlist_t *props)
error = SET_ERROR(EINVAL);
break;
}
- check++;
}
if (strlen(strval) > ZPROP_MAX_COMMENT)
error = SET_ERROR(E2BIG);