mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
Remove bad kmem_free() oversight from previous zfsdev_state_list patch
I forgot to remove the corresponding kmem_free() from zfs_kmod_fini() in
9a14ce43c3
. Clang's static analyzer did
not complain, but the Coverity scan that was run after the patch was
merged did.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reported-by: Coverity (CID-1535275)
Closes #14556
This commit is contained in:
parent
dd108f5d73
commit
9fd5fedc67
@ -7862,7 +7862,6 @@ zfs_kmod_fini(void)
|
||||
zfs_onexit_destroy(zs->zs_onexit);
|
||||
if (zs->zs_zevent)
|
||||
zfs_zevent_destroy(zs->zs_zevent);
|
||||
kmem_free(zs, sizeof (zfsdev_state_t));
|
||||
}
|
||||
|
||||
zfs_ereport_taskq_fini(); /* run before zfs_fini() on Linux */
|
||||
|
Loading…
Reference in New Issue
Block a user