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
GitHub <noreply@github.com>Committed on Sep 15 2022, 11:21 PM
Parents
rGfa22ec569c09: Use correct mdoc macros for arguments
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGddb1fd91c0db: Fix incorrect size given to bqueue_enqueue() call in dmu_redact.c (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Sep 15 2022, 11:21 PM