summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2000-01-13 23:41:18 +0000
committeroster <oster@NetBSD.org>2000-01-13 23:41:18 +0000
commitec84f30ddd36ba31c0399c0019ecd98ef4751a6d (patch)
tree0e541d15989bc635189ccc7facd89dede16dcfb1 /sys/dev/raidframe
parent1ee1632a026bcbe5172bd11cee621a9243b28f9d (diff)
If we can't malloc a RF_ShutdownList then we should return ENOMEM right away.
Waiting for more kernel memory to come along can cause more problems than we're willing to deal with right now.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_shutdown.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_shutdown.c b/sys/dev/raidframe/rf_shutdown.c
index e76d95967ea..5384b680f35 100644
--- a/sys/dev/raidframe/rf_shutdown.c
+++ b/sys/dev/raidframe/rf_shutdown.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_shutdown.c,v 1.5 2000/01/08 22:57:31 oster Exp $ */
+/* $NetBSD: rf_shutdown.c,v 1.6 2000/01/13 23:41:18 oster Exp $ */
/*
* rf_shutdown.c
*/
@@ -59,7 +59,10 @@ _rf_ShutdownCreate(
* Have to directly allocate memory here, since we start up before
* and shutdown after RAIDframe internal allocation system.
*/
- ent = (RF_ShutdownList_t *) malloc(sizeof(RF_ShutdownList_t), M_RAIDFRAME, M_WAITOK);
+ /* ent = (RF_ShutdownList_t *) malloc(sizeof(RF_ShutdownList_t),
+ M_RAIDFRAME, M_WAITOK); */
+ ent = (RF_ShutdownList_t *) malloc(sizeof(RF_ShutdownList_t),
+ M_RAIDFRAME, M_NOWAIT);
if (ent == NULL)
return (ENOMEM);
ent->cleanup = cleanup;