Fix an oversight in some code I added to the last commit.
This commit is contained in:
parent
1e30d929a4
commit
df79cfe4a6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110572
@ -670,7 +670,7 @@ pcn_attach(dev)
|
||||
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…
Reference in New Issue
Block a user