Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/opencrypto opencrypto(9): Fix missing initialization in ...



details:   https://anonhg.NetBSD.org/src/rev/9671b365c8cf
branches:  trunk
changeset: 368182:9671b365c8cf
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Jun 26 22:52:30 2022 +0000

description:
opencrypto(9): Fix missing initialization in error branch.

Reported-by: syzbot+8c519140cac567be1ee1%syzkaller.appspotmail.com@localhost

diffstat:

 sys/opencrypto/crypto.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 4958cd2c9d3f -r 9671b365c8cf sys/opencrypto/crypto.c
--- a/sys/opencrypto/crypto.c   Sun Jun 26 22:49:09 2022 +0000
+++ b/sys/opencrypto/crypto.c   Sun Jun 26 22:52:30 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crypto.c,v 1.130 2022/05/22 11:40:54 riastradh Exp $ */
+/*     $NetBSD: crypto.c,v 1.131 2022/06/26 22:52:30 riastradh 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.130 2022/05/22 11:40:54 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.131 2022/06/26 22:52:30 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/reboot.h>
@@ -1485,6 +1485,7 @@
                return error;
        } else {
                krp->krp_status = ENODEV;
+               krp->reqcpu = curcpu();
                crypto_kdone(krp);
                return 0;
        }



Home | Main Index | Thread Index | Old Index