HomeFreeBSD

vmd: Clean up resources properly when vmd_attach() fails

Description

vmd: Clean up resources properly when vmd_attach() fails

  • Free the resource container by calling rman_fini().[1]
  • Call device_delete_child() if device_probe_and_attach() fails.

Reported by: nc [1]
MFC after: 2 weeks

Details

Provenance
markjAuthored on Jan 8 2021, 6:32 PM
Parents
rGadc0dcc352bb: mpr, mps: Fix an off-by-one bug in the BTDH_MAPPING ioctl
Branches
Unknown
Tags
Unknown