]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iflib: Detach tasks upon device registration failure
authormarkj <markj@FreeBSD.org>
Mon, 7 Dec 2020 14:52:57 +0000 (14:52 +0000)
committermarkj <markj@FreeBSD.org>
Mon, 7 Dec 2020 14:52:57 +0000 (14:52 +0000)
commit5e0d2eed996cbab44a6fad3b028503200f7e09b8
tree5416a512f12b569a848d554aff34a2c77e92e16e
parent5b641fe78b854c4ac9c790e619a15e1d9a66321d
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