Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-compat]: src/sys/opencrypto Since the caller passes the address...
details: https://anonhg.NetBSD.org/src/rev/ed30c1463456
branches: pgoyette-compat
changeset: 830745:ed30c1463456
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sat Sep 22 10:49:09 2018 +0000
description:
Since the caller passes the address of our mutex, use it rather than
trying to reference it via global symbol (which might not exist).
diffstat:
sys/opencrypto/ocryptodev.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r fc59c631f69c -r ed30c1463456 sys/opencrypto/ocryptodev.c
--- a/sys/opencrypto/ocryptodev.c Sat Sep 22 10:42:00 2018 +0000
+++ b/sys/opencrypto/ocryptodev.c Sat Sep 22 10:49:09 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ocryptodev.c,v 1.11.2.4 2018/09/22 10:33:50 pgoyette Exp $ */
+/* $NetBSD: ocryptodev.c,v 1.11.2.5 2018/09/22 10:49:09 pgoyette Exp $ */
/* $FreeBSD: src/sys/opencrypto/cryptodev.c,v 1.4.2.4 2003/06/03 00:09:02 sam Exp $ */
/* $OpenBSD: cryptodev.c,v 1.53 2002/07/10 22:21:30 mickey Exp $ */
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ocryptodev.c,v 1.11.2.4 2018/09/22 10:33:50 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ocryptodev.c,v 1.11.2.5 2018/09/22 10:49:09 pgoyette Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -162,10 +162,10 @@
kmem_free(osnop, osgop->count * sizeof(struct osession_n_op));
break;
case OCIOCCRYPT:
- mutex_enter(&cryptodev_mtx);
+ mutex_enter(mtx);
ocop = (struct ocrypt_op *)data;
cse = (*real_csefind)(fcr, ocop->ses);
- mutex_exit(&cryptodev_mtx);
+ mutex_exit(mtx);
if (cse == NULL) {
DPRINTF("csefind failed\n");
return EINVAL;
Home |
Main Index |
Thread Index |
Old Index