Coverity-updates archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
New Defects reported by Coverity Scan for NetBSD-amd64-kernel
Hi,
Please find the latest report on new defect(s) introduced to NetBSD-amd64-kernel found with Coverity Scan.
15 new defect(s) introduced to NetBSD-amd64-kernel found with Coverity Scan.
15 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 15 of 15 defect(s)
** CID 1288209: Incorrect expression (ASSERT_SIDE_EFFECT)
/sys/dev/lockstat.c: 169 in lockstat_init_tables()
________________________________________________________________________________________________________
*** CID 1288209: Incorrect expression (ASSERT_SIDE_EFFECT)
/sys/dev/lockstat.c: 169 in lockstat_init_tables()
163 int i, per, slop, cpuno;
164 CPU_INFO_ITERATOR cii;
165 struct cpu_info *ci;
166 lscpu_t *lc;
167 lsbuf_t *lb;
168
>>> CID 1288209: Incorrect expression (ASSERT_SIDE_EFFECT)
>>> Argument "lockstat_dev_enabled" of KASSERT() has a side effect because the variable is volatile. The containing function might work differently in a non-debug build.
169 KASSERT(!lockstat_dev_enabled);
170
171 for (CPU_INFO_FOREACH(cii, ci)) {
172 if (ci->ci_lockstat != NULL) {
173 kmem_free(ci->ci_lockstat, sizeof(lscpu_t));
174 ci->ci_lockstat = NULL;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/1447?tab=overview
To manage Coverity Scan email notifications for "coverity-updates%netbsd.org@localhost", click https://scan.coverity.com/subscriptions/edit?email=coverity-updates%40netbsd.org&token=487286ca1a9a4f4bd485d16f66b5e782 .
Home |
Main Index |
Thread Index |
Old Index