Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/opencrypto fix: crypto_unregister didn't work.
details: https://anonhg.NetBSD.org/src/rev/d04a51318c8d
branches: trunk
changeset: 353989:d04a51318c8d
user: knakahara <knakahara%NetBSD.org@localhost>
date: Wed May 31 02:17:49 2017 +0000
description:
fix: crypto_unregister didn't work.
diffstat:
sys/opencrypto/crypto.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 45cfbdb9fcca -r d04a51318c8d sys/opencrypto/crypto.c
--- a/sys/opencrypto/crypto.c Wed May 31 01:50:19 2017 +0000
+++ b/sys/opencrypto/crypto.c Wed May 31 02:17:49 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crypto.c,v 1.77 2017/05/29 09:02:46 knakahara Exp $ */
+/* $NetBSD: crypto.c,v 1.78 2017/05/31 02:17:49 knakahara Exp $ */
/* $FreeBSD: src/sys/opencrypto/crypto.c,v 1.4.2.5 2003/02/26 00:14:05 sam Exp $ */
/* $OpenBSD: crypto.c,v 1.41 2002/07/17 23:52:38 art Exp $ */
@@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.77 2017/05/29 09:02:46 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.78 2017/05/31 02:17:49 knakahara Exp $");
#include <sys/param.h>
#include <sys/reboot.h>
@@ -790,7 +790,7 @@
KASSERT(mutex_owned(&crypto_drv_mtx));
- if (CRYPTO_ALGORITHM_MIN <= alg && alg <= CRYPTO_ALGORITHM_MAX)
+ if (alg < CRYPTO_ALGORITHM_MIN || CRYPTO_ALGORITHM_MAX < alg)
return EINVAL;
cap = crypto_checkdriver(driverid);
Home |
Main Index |
Thread Index |
Old Index