]> git.proxmox.com Git - mirror_zfs.git/commit
Fix incorrect size given to bqueue_enqueue() call in dmu_redact.c
authorRichard Yao <richard.yao@alumni.stonybrook.edu>
Thu, 15 Sep 2022 23:21:21 +0000 (19:21 -0400)
committerGitHub <noreply@github.com>
Thu, 15 Sep 2022 23:21:21 +0000 (16:21 -0700)
commitddb1fd91c0dbf64847235ee65e50e87c43257b05
treea843da6d56a56616b6a7edd2ef792329781ea91e
parentfa22ec569c093d5583a7f406ba0a9bb223eae436
Fix incorrect size given to bqueue_enqueue() call in dmu_redact.c

We pass sizeof (struct redact_record *) rather than sizeof (struct
redact_record). Passing the pointer size is wrong.

Coverity caught this in two places.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #13885
module/zfs/dmu_redact.c