summaryrefslogtreecommitdiff
path: root/sys/crypto
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-10-26 12:03:29 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-10-26 12:03:29 +0000
commiteb46b9853439c27012a22a86f3d9139930a9e87a (patch)
tree0668f2d444b8c90d902fc4d94aaf484b512bab93 /sys/crypto
parent322ae2c6b01056eccf34722ee78713e1b3337123 (diff)
- every new fd created by falloc() is marked as larval and should not be used
any anyone. Every caller of falloc matures the fd when it's usable. - Since every lookup in the fd table must now check this flag and all of them do the same thing, move all the necessary checks into a function - fd_getfile.
Diffstat (limited to 'sys/crypto')
-rw-r--r--sys/crypto/cryptodev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c
index e37082e9e10..2291577a0f9 100644
--- a/sys/crypto/cryptodev.c
+++ b/sys/crypto/cryptodev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptodev.c,v 1.24 2001/09/03 10:13:44 deraadt Exp $ */
+/* $OpenBSD: cryptodev.c,v 1.25 2001/10/26 12:03:27 art Exp $ */
/*
* Copyright (c) 2001 Theo de Raadt
@@ -551,6 +551,7 @@ cryptoioctl(dev, cmd, data, flag, p)
f->f_ops = &cryptofops;
f->f_data = (caddr_t)fcr;
*(u_int32_t *)data = fd;
+ FILE_SET_MATURE(f);
break;
default:
error = EINVAL;