summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/crypto/via/padlock.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/crypto/via/padlock.c b/sys/crypto/via/padlock.c
index e9b0232..33dbae8 100644
--- a/sys/crypto/via/padlock.c
+++ b/sys/crypto/via/padlock.c
@@ -179,11 +179,7 @@ padlock_init(void)
#endif
padlock_sc = sc = malloc(sizeof(*padlock_sc), M_DEVBUF,
- M_NOWAIT | M_ZERO);
- if (padlock_sc == NULL) {
- printf("PADLOCK: Could not allocate memory.\n");
- return (ENOMEM);
- }
+ M_WAITOK | M_ZERO);
TAILQ_INIT(&sc->sc_sessions);
sc->sc_sid = 1;
OpenPOWER on IntegriCloud