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
GitHub <noreply@github.com>Committed on Sep 14 2022, 12:00 AM
Parents
rGcf66e7e594fc: Cleanup: Make memory barrier definitions consistent across kernels
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGfcd7293d4e78: Remove incorrect free() in zfs_get_pci_slots_sys_path() (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Sep 14 2022, 12:00 AM