HomeFreeBSD

Fix incorrect size given to bqueue_enqueue() call in dmu_redact.c

Description

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

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Sep 15 2022, 11:21 PM
Tony Hutter <hutter2@llnl.gov>Committed on Sep 21 2022, 8:15 PM
Parents
rG035e52f59152: Delay ZFS_PROP_SHARESMB property to handle it for encrypted raw receive
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG5096ed31c8c3: Fix incorrect size given to bqueue_enqueue() call in dmu_redact.c (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Sep 21 2022, 8:15 PM