kdb_trap: Fix use of uninitialized data

In some cases, other_cpus was used without being initialized.
Thankfully, it was harmless.

Reported by:	Coverity
CID:		1385265
Sponsored by:	Dell EMC
This commit is contained in:
Eric van Gyzen 2018-05-26 14:01:44 +00:00
parent a4ccdf9091
commit 16b51429d2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334238

View File

@ -708,9 +708,10 @@ kdb_trap(int type, int code, struct trapframe *tf)
kdb_active--;
#ifdef SMP
CPU_AND(&other_cpus, &stopped_cpus);
if (did_stop_cpus)
if (did_stop_cpus) {
CPU_AND(&other_cpus, &stopped_cpus);
restart_cpus(other_cpus);
}
#endif
intr_restore(intr);