HomeFreeBSD

linuxkpi: Rework detach function

Description

linuxkpi: Rework detach function

We need to detach the matching i2c adapter so look for the right one.
While here add some locks to protect multiple add/del at the same time.

Fixes: 1961a14a47 ("linuxkpi: Add i2c support")
Sponsored by: Beckhoff Automation GmbH & Co. KG

Details

Provenance
manuAuthored on May 13 2022, 11:56 AM
Parents
rGad51c47fb431: sockbuf: fix assertion in sbcreatecontrol()
Branches
Unknown
Tags
Unknown