diff options
author | Dan McDonald <danmcd@omniti.com> | 2016-04-27 13:54:56 -0400 |
---|---|---|
committer | Dan McDonald <danmcd@omniti.com> | 2016-05-17 22:44:42 -0400 |
commit | 3c9850a686c2fcba473e4f602616772c17c21dee (patch) | |
tree | aade5d9789d90d787bbf333f63a0ca98ef2dfe0a | |
parent | 24e268f3071ecc622f716e7801683c84f4d4f9db (diff) | |
download | illumos-joyent-3c9850a686c2fcba473e4f602616772c17c21dee.tar.gz |
6938 STMF kstat free is using an improper size for kmem_free().
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Approved by: Gordon Ross <gordon.ross@nexenta.com>
-rw-r--r-- | usr/src/uts/common/io/comstar/stmf/stmf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/src/uts/common/io/comstar/stmf/stmf.c b/usr/src/uts/common/io/comstar/stmf/stmf.c index 37d79a371c..a209f291e3 100644 --- a/usr/src/uts/common/io/comstar/stmf/stmf.c +++ b/usr/src/uts/common/io/comstar/stmf/stmf.c @@ -3180,8 +3180,7 @@ stmf_deregister_lu(stmf_lu_t *lu) return (STMF_BUSY); } if (ilu->ilu_kstat_info) { - kmem_free(ilu->ilu_kstat_info->ks_data, - ilu->ilu_kstat_info->ks_data_size); + kmem_free(ilu->ilu_kstat_info->ks_data, STMF_KSTAT_LU_SZ); kstat_delete(ilu->ilu_kstat_info); } if (ilu->ilu_kstat_io) { @@ -3359,7 +3358,7 @@ stmf_deregister_local_port(stmf_local_port_t *lport) } if (ilport->ilport_kstat_info) { kmem_free(ilport->ilport_kstat_info->ks_data, - ilport->ilport_kstat_info->ks_data_size); + STMF_KSTAT_TGT_SZ); kstat_delete(ilport->ilport_kstat_info); } if (ilport->ilport_kstat_io) { |