zfs_ctldir: fix incorrect argument type of rw_destroy

The argument type of rw_destroy is (krwlock_t *) while currently
krwlock_t is passed in zfs_ctldir.c. This error is hidden because
rw_destroy is defined as ((void) 0) in linux. But anyway, this
mismatch should be fixed.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ping Huang <huangping@smartx.com>
Closes #13272
This commit is contained in:
hpingfs 2022-03-31 06:40:31 +08:00 committed by GitHub
parent abdcef47d2
commit 4d04e41e4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,7 @@ zfsctl_snapshot_free(zfs_snapentry_t *se)
zfs_refcount_destroy(&se->se_refcount); zfs_refcount_destroy(&se->se_refcount);
kmem_strfree(se->se_name); kmem_strfree(se->se_name);
kmem_strfree(se->se_path); kmem_strfree(se->se_path);
rw_destroy(se->se_taskqid_lock); rw_destroy(&se->se_taskqid_lock);
kmem_free(se, sizeof (zfs_snapentry_t)); kmem_free(se, sizeof (zfs_snapentry_t));
} }