mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add missing mtx_destroy() on channel attach failure.
This commit is contained in:
parent
130a081563
commit
5b9392e840
2 changed files with 2 additions and 0 deletions
|
|
@ -969,6 +969,7 @@ err1:
|
|||
err0:
|
||||
bus_release_resource(dev, SYS_RES_MEMORY, ch->unit, ch->r_mem);
|
||||
mtx_unlock(&ch->mtx);
|
||||
mtx_destroy(&ch->mtx);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -527,6 +527,7 @@ err1:
|
|||
err0:
|
||||
bus_release_resource(dev, SYS_RES_MEMORY, ch->unit, ch->r_mem);
|
||||
mtx_unlock(&ch->mtx);
|
||||
mtx_destroy(&ch->mtx);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue