Module Name: src Committed By: reinoud Date: Sat Jan 13 13:53:36 UTC 2018
Modified Files: src/sys/kern: subr_interrupt.c Log Message: Compilation of a kernel outside the build.sh framework exposed the uninitialised usage of `error' in interrupt_avert_intr(). In theory it can reach the `out' label without `error' initialized. No idea if that really ever happens in practice. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/kern/subr_interrupt.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/kern/subr_interrupt.c diff -u src/sys/kern/subr_interrupt.c:1.2 src/sys/kern/subr_interrupt.c:1.3 --- src/sys/kern/subr_interrupt.c:1.2 Thu Jun 1 02:45:13 2017 +++ src/sys/kern/subr_interrupt.c Sat Jan 13 13:53:36 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_interrupt.c,v 1.2 2017/06/01 02:45:13 chs Exp $ */ +/* $NetBSD: subr_interrupt.c,v 1.3 2018/01/13 13:53:36 reinoud Exp $ */ /* * Copyright (c) 2015 Internet Initiative Japan Inc. @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: subr_interrupt.c,v 1.2 2017/06/01 02:45:13 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_interrupt.c,v 1.3 2018/01/13 13:53:36 reinoud Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -126,7 +126,7 @@ interrupt_avert_intr(u_int cpu_idx) kcpuset_t *cpuset; struct intrids_handler *ii_handler; intrid_t *ids; - int error, i, nids; + int error = 0, i, nids; kcpuset_create(&cpuset, true); kcpuset_set(cpuset, cpu_idx);