HomeFreeBSD

vf_i2c: Don't hold a mutex across bus_generic_detach

Description

vf_i2c: Don't hold a mutex across bus_generic_detach

This was also leaking the lock if bus_generic_detach failed.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D47221

(cherry picked from commit 13a1dbfed57b167a6dc4d68b60115eb0e070b9b6)

Details

Provenance
jhbAuthored on Oct 31 2024, 7:49 PM
Reviewer
imp
Differential Revision
D47221: vf_i2c: Don't hold a mutex across bus_generic_detach
Parents
rG82ee73e713c4: ignore_pci: Add a proper stub attach routine
Branches
Unknown
Tags
Unknown