--- src/sys/dev/disk/aic7xxx/aic7xxx_pci.c 2007/08/04 21:42:15 1.13 +++ src/sys/dev/disk/aic7xxx/aic7xxx_pci.c 2008/02/09 18:13:13 1.14 @@ -39,7 +39,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. * - * $Id: aic7xxx_pci.c,v 1.13 2007/08/04 21:42:15 dillon Exp $ + * $Id: aic7xxx_pci.c,v 1.14 2008/02/09 18:13:13 pavalos Exp $ * * $FreeBSD: src/sys/dev/aic7xxx/aic7xxx_pci.c,v 1.35 2005/09/22 05:11:35 gibbs Exp $ * $DragonFly$ @@ -1045,10 +1045,12 @@ ahc_pci_config(struct ahc_softc *ahc, st if (error != 0) return (error); + ahc_lock(ahc); /* * Link this softc in with all other ahc instances. */ ahc_softc_insert(ahc); + ahc_unlock(ahc); return (0); }