summaryrefslogtreecommitdiffstats
path: root/sys/crypto
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-04-12 12:13:34 +0000
committerpjd <pjd@FreeBSD.org>2006-04-12 12:13:34 +0000
commit7f664ed13a2faa585a7d56df0e12d90e944db4c7 (patch)
treeecd938db5c735d1f40f837dadd4ff351290e0690 /sys/crypto
parent5b9ec83b0cb42e3148ecc0efb92f4474152ffe10 (diff)
downloadFreeBSD-src-7f664ed13a2faa585a7d56df0e12d90e944db4c7.zip
FreeBSD-src-7f664ed13a2faa585a7d56df0e12d90e944db4c7.tar.gz
On padlock initialization, allocate memory with M_WAITOK.
Diffstat (limited to 'sys/crypto')
-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