diff options
author | hpingfs <[email protected]> | 2022-03-31 06:40:31 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-30 15:40:31 -0700 |
commit | 4d04e41e4def222e454d05d77c3a93057c58f471 (patch) | |
tree | c8c6e5c42f284b876b8fb3ce6eaa417df5984bfd /module/os/linux/zfs | |
parent | abdcef47d2ef9f38092bcfd3e4a8ec5499244826 (diff) |
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 <[email protected]>
Signed-off-by: Ping Huang <[email protected]>
Closes #13272
Diffstat (limited to 'module/os/linux/zfs')
-rw-r--r-- | module/os/linux/zfs/zfs_ctldir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/os/linux/zfs/zfs_ctldir.c b/module/os/linux/zfs/zfs_ctldir.c index f7e71461a..7723b5256 100644 --- a/module/os/linux/zfs/zfs_ctldir.c +++ b/module/os/linux/zfs/zfs_ctldir.c @@ -162,7 +162,7 @@ zfsctl_snapshot_free(zfs_snapentry_t *se) zfs_refcount_destroy(&se->se_refcount); kmem_strfree(se->se_name); kmem_strfree(se->se_path); - rw_destroy(se->se_taskqid_lock); + rw_destroy(&se->se_taskqid_lock); kmem_free(se, sizeof (zfs_snapentry_t)); } |