Module Name: src Committed By: hannken Date: Sat Feb 5 17:32:59 UTC 2022
Modified Files: src/sys/dev/scsipi: scsiconf.c Log Message: Initialize "replun" -- found with KMSAN. To generate a diff of this commit: cvs rdiff -u -r1.297 -r1.298 src/sys/dev/scsipi/scsiconf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/scsipi/scsiconf.c diff -u src/sys/dev/scsipi/scsiconf.c:1.297 src/sys/dev/scsipi/scsiconf.c:1.298 --- src/sys/dev/scsipi/scsiconf.c:1.297 Sat Jan 29 11:20:30 2022 +++ src/sys/dev/scsipi/scsiconf.c Sat Feb 5 17:32:59 2022 @@ -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 @@ scsi_report_luns(struct scsibus_softc *s 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;