HomeFreeBSD

ctl ramdisk: Free compare buffer after a compare I/O request.

Description

ctl ramdisk: Free compare buffer after a compare I/O request.

For a compare request, the ramdisk backend allocates a temporary
buffer to hold the I/O data and then compares it against the LUN's
pages in ctl_backend_ramdisk_cmp after the data has been filled.
However, the tempory buffer was leaked when after the comparison was
complete. Fix this by freeing the buffer after the comparison.

Reviewed by: mav
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D34316

Details

Provenance
jhbAuthored on Feb 18 2022, 11:20 PM
Reviewer
mav
Differential Revision
D34316: ctl ramdisk: Free compare buffer after a compare I/O request.
Parents
rG39d8c3870752: LinuxKPI: return value for linux_pci_probe()
Branches
Unknown
Tags
Unknown