HomeFreeBSD

mana: Improve the HWC error handling

Description

mana: Improve the HWC error handling

Currently when the HWC creation fails, the error handling is flawed,
e.g. if mana_hwc_create_channel() -> mana_hwc_establish_channel() fails,
the resources acquired in mana_hwc_init_queues() is not released.

Enhance mana_hwc_destroy_channel() to do the proper cleanup work and
call it accordingly.

MFC after: 2 weeks
Sponsored by: Microsoft

Details

Provenance
whuAuthored on Jan 12 2022, 2:33 PM
Parents
rG0e8181c01237: ixl(4): Remove unused function declaration
Branches
Unknown
Tags
Unknown