Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/scsipi Initialize "replun" -- found with KMSAN.
details: https://anonhg.NetBSD.org/src/rev/3d1ea5fcd34c
branches: trunk
changeset: 359983:3d1ea5fcd34c
user: hannken <hannken%NetBSD.org@localhost>
date: Sat Feb 05 17:32:59 2022 +0000
description:
Initialize "replun" -- found with KMSAN.
diffstat:
sys/dev/scsipi/scsiconf.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 504795c1d2b4 -r 3d1ea5fcd34c sys/dev/scsipi/scsiconf.c
--- a/sys/dev/scsipi/scsiconf.c Sat Feb 05 15:29:50 2022 +0000
+++ b/sys/dev/scsipi/scsiconf.c Sat Feb 05 17:32:59 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scsiconf.c,v 1.297 2022/01/29 11:20:30 martin Exp $ */
+/* $NetBSD: scsiconf.c,v 1.298 2022/02/05 17:32:59 hannken Exp $ */
/*-
* Copyright (c) 1998, 1999, 2004 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scsiconf.c,v 1.297 2022/01/29 11:20:30 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsiconf.c,v 1.298 2022/02/05 17:32:59 hannken Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -399,6 +399,8 @@
int error;
size_t i, rlrlen;
+ memset(&replun, 0, sizeof(replun));
+
periph = scsipi_alloc_periph(M_WAITOK);
periph->periph_channel = chan;
periph->periph_switch = &scsi_probe_dev;
Home |
Main Index |
Thread Index |
Old Index