Add missing mtx_destroy() on channel attach failure.
This commit is contained in:
parent
dbb2753aa1
commit
00e9a82e78
@ -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…
x
Reference in New Issue
Block a user