From: Sepherosa Ziehau Date: Tue, 7 Feb 2012 09:17:55 +0000 (+0800) Subject: mps: Use WAITOK to allocate critical data struct on attach path X-Git-Tag: v3.4.0rc~1253 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/1eb10600ccc07893bb30b08efddb7dff5ddc7e97 mps: Use WAITOK to allocate critical data struct on attach path --- diff --git a/sys/dev/raid/mps/mps.c b/sys/dev/raid/mps/mps.c index 903d51ca2a..155e1427aa 100644 --- a/sys/dev/raid/mps/mps.c +++ b/sys/dev/raid/mps/mps.c @@ -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);