mps: Use WAITOK to allocate critical data struct on attach path
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 7 Feb 2012 09:17:55 +0000 (17:17 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 7 Feb 2012 09:17:55 +0000 (17:17 +0800)
sys/dev/raid/mps/mps.c

index 903d51c..155e142 100644 (file)
@@ -1044,7 +1044,7 @@ mps_attach(struct mps_softc *sc)
        }
 
        sc->facts = kmalloc(sizeof(MPI2_IOC_FACTS_REPLY), M_MPT2,
-           M_ZERO|M_NOWAIT);
+           M_ZERO|M_WAITOK);
        if ((error = mps_get_iocfacts(sc, sc->facts)) != 0)
                return (error);