]> granicus.if.org Git - zfs/commit
Fix coverity defects: CID 186143
authorloli10K <loli10K@users.noreply.github.com>
Fri, 24 May 2019 02:17:00 +0000 (04:17 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 May 2019 02:17:00 +0000 (19:17 -0700)
commit75c09c5060b85a144cc794ae857520662dc8fd58
treefed3bab5926b4cc268eeed1299437a900de82bba
parent2d0077da6ded46fb9c8fc646904d23a54ad4d352
Fix coverity defects: CID 186143

CID 186143: Memory - illegal accesses (USE_AFTER_FREE)

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

Reviewed-by: Chris Dunlop <chris@onthe.net.au>
Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #8788
module/zfs/spa_misc.c