diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2018-12-16 14:43:39 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2018-12-16 14:43:39 +0000 |
commit | dc394a6fe08ab76d756ad213f302739e24903bbe (patch) | |
tree | 256014cdac1b165721a5acad4efbf9316c30cab4 /sys/arch/octeon | |
parent | 6f7f17f793e3f999dab1535ebd387bdb7a9a38e4 (diff) |
Fix pool ipl to prevent a deadlock scenario.
While here, make the pool use the default memory alignment. The default
setting is good enough for the driver and the hardware.
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r-- | sys/arch/octeon/dev/octcrypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/octeon/dev/octcrypto.c b/sys/arch/octeon/dev/octcrypto.c index 795b4d5c5c3..15d1aa32482 100644 --- a/sys/arch/octeon/dev/octcrypto.c +++ b/sys/arch/octeon/dev/octcrypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: octcrypto.c,v 1.1 2018/04/09 13:46:15 visa Exp $ */ +/* $OpenBSD: octcrypto.c,v 1.2 2018/12/16 14:43:38 visa Exp $ */ /* * Copyright (c) 2018 Visa Hankala @@ -236,7 +236,7 @@ octcrypto_attach(struct device *parent, struct device *self, void *aux) int algs[CRYPTO_ALGORITHM_MAX + 1]; struct octcrypto_softc *sc = (struct octcrypto_softc *)self; - pool_init(&octcryptopl, sizeof(struct octcrypto_session), 16, 0, 0, + pool_init(&octcryptopl, sizeof(struct octcrypto_session), 0, IPL_VM, 0, "octcrypto", NULL); pool_setlowat(&octcryptopl, 2); |