Fix an oversight in some code I added to the last commit.
This commit is contained in:
parent
b3bda39ac2
commit
3e2b39dbdd
@ -670,7 +670,7 @@ fail:
|
||||
if (sc->pcn_res)
|
||||
bus_release_resource(dev, PCN_RES, PCN_RID, sc->pcn_res);
|
||||
|
||||
if (mtx_initialized(&sc->mtx) != 0)
|
||||
if (mtx_initialized(&sc->pcn_mtx) != 0)
|
||||
mtx_destroy(&sc->pcn_mtx);
|
||||
|
||||
return(error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user