]> git.proxmox.com Git - mirror_zfs.git/commit
Fix coverity defects: CID 184285
authorLOLi <loli10K@users.noreply.github.com>
Mon, 12 Nov 2018 02:09:00 +0000 (03:09 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 12 Nov 2018 02:09:00 +0000 (18:09 -0800)
commitc8fd652ce7abe85c5238356248d1918ea9ff5ff8
tree5caf9008e532c92a5566557df9c5622d6152446d
parentecd3728b264b94de239932555b7046f1ddb936b2
Fix coverity defects: CID 184285

CID 184285: Read from pointer after free (USE_AFTER_FREE)

This patch fixes an use-after-free in vdev_config_generate_stats()
moving the kmem_free() call at the end of the function.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #8120
module/zfs/vdev_label.c