]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iflib: Detach tasks upon device registration failure
authorMark Johnston <markj@FreeBSD.org>
Mon, 7 Dec 2020 14:52:57 +0000 (14:52 +0000)
committerMark Johnston <markj@FreeBSD.org>
Mon, 7 Dec 2020 14:52:57 +0000 (14:52 +0000)
commit102540192c7195c99722869a11a48868e9116e91
tree5416a512f12b569a848d554aff34a2c77e92e16e
parent9de6a13e0f492954612bb7d9752bdd3a1102d17a
iflib: Detach tasks upon device registration failure

In some error paths we would fail to detach from the iflib taskqueue
groups.  Also move the detach code into its own subroutine instead of
duplicating it.

Submitted by: Sai Rajesh Tallamraju <stallamr@netapp.com>
MFC after: 2 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D27342
sys/net/iflib.c