From 4b9ed698b4838a36daa591d08728a692095f8f01 Mon Sep 17 00:00:00 2001 From: Jorgen Lundman Date: Tue, 26 Jan 2016 18:02:04 -0800 Subject: [PATCH] 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 Reviewed by: Matthew Ahrens Reviewed by: Dan McDonald Approved by: Gordon Ross References: https://www.illumos.org/issues/6527 https://github.com/illumos/illumos-gate/commit/2bd7a8d Ported-by: Brian Behlendorf Signed-off-by: Chunwei Chen --- module/zfs/spa.c | 1 - 1 file changed, 1 deletion(-) diff --git a/module/zfs/spa.c b/module/zfs/spa.c index ea4eb9f9a8..34a317fbed 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);