HomeFreeBSD

Remove incorrect free() in zfs_get_pci_slots_sys_path()

Description

Remove incorrect free() in zfs_get_pci_slots_sys_path()

Coverity found this. We attempted to free tmp, which is a pointer to a
string that should be freed by the caller.

Reviewed-by: Neal Gompa <ngompa@datto.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #13864

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Sep 14 2022, 12:00 AM
Tony Hutter <hutter2@llnl.gov>Committed on Dec 1 2022, 8:39 PM
Parents
rGb247d47be183: Cleanup: Make memory barrier definitions consistent across kernels
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG3f380df778c6: Remove incorrect free() in zfs_get_pci_slots_sys_path() (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Dec 1 2022, 8:39 PM