From df79cfe4a6e6558467ed949ec9d445cf3ed523f1 Mon Sep 17 00:00:00 2001 From: "Matthew N. Dodd" Date: Sat, 8 Feb 2003 21:06:03 +0000 Subject: [PATCH] Fix an oversight in some code I added to the last commit. --- sys/pci/if_pcn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/pci/if_pcn.c b/sys/pci/if_pcn.c index 8b539cd0df13..1bb5d1854155 100644 --- a/sys/pci/if_pcn.c +++ b/sys/pci/if_pcn.c @@ -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);