summaryrefslogtreecommitdiff
path: root/sys/opencrypto/cryptodev.c
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2003-10-19 20:41:07 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2003-10-19 20:41:07 +0000
commite1419c08e2520d267e0a14e1bb10ae3bebbb12ae (patch)
tree005101ab125d7c43f5a5366aaad1dafbe9eb3c26 /sys/opencrypto/cryptodev.c
parent48ae2dddac9af3264c7eef87594bd0b0920c8d6f (diff)
Notes
Diffstat (limited to 'sys/opencrypto/cryptodev.c')
-rw-r--r--sys/opencrypto/cryptodev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/opencrypto/cryptodev.c b/sys/opencrypto/cryptodev.c
index e3bbba55c6cc..51617f5f58b6 100644
--- a/sys/opencrypto/cryptodev.c
+++ b/sys/opencrypto/cryptodev.c
@@ -751,7 +751,7 @@ cryptoioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
FREE(fcr, M_XDATA);
return (error);
}
- fhold(f);
+ /* falloc automatically provides an extra reference to 'f'. */
f->f_flag = FREAD | FWRITE;
f->f_type = DTYPE_CRYPTO;
f->f_ops = &cryptofops;