summaryrefslogtreecommitdiffstats
path: root/sys/crypto/cryptodev.c
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2002-11-21 19:34:25 +0000
committerjason <jason@openbsd.org>2002-11-21 19:34:25 +0000
commitfc652f68ddea432eb4510092c7c7020516b1fcf7 (patch)
tree4184cbad485bcdb933695f6513bfa319b0e9098b /sys/crypto/cryptodev.c
parentlofn works (diff)
downloadwireguard-openbsd-fc652f68ddea432eb4510092c7c7020516b1fcf7.tar.xz
wireguard-openbsd-fc652f68ddea432eb4510092c7c7020516b1fcf7.zip
From Angelos:
- simplistic load balancing across multiple cards - simplified registration process - a few style nits.
Diffstat (limited to 'sys/crypto/cryptodev.c')
-rw-r--r--sys/crypto/cryptodev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c
index 91e4e46c77c..25386790a0a 100644
--- a/sys/crypto/cryptodev.c
+++ b/sys/crypto/cryptodev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptodev.c,v 1.54 2002/11/12 18:23:13 jason Exp $ */
+/* $OpenBSD: cryptodev.c,v 1.55 2002/11/21 19:34:25 jason Exp $ */
/*
* Copyright (c) 2001 Theo de Raadt
@@ -304,8 +304,9 @@ cryptodev_op(struct csession *cse, struct crypt_op *cop, struct proc *p)
if (cop->len > 256*1024-4)
return (E2BIG);
- if (cse->txform && (cop->len % cse->txform->blocksize) != 0)
+ if (cse->txform && (cop->len % cse->txform->blocksize) != 0) {
return (EINVAL);
+ }
bzero(&cse->uio, sizeof(cse->uio));
cse->uio.uio_iovcnt = 1;