FreeBSD Bugzilla – Attachment 180765 Details for
Bug 217741
sys/dev/hwpmc/hwpmc_piv.c: PVS-Studio: V547
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
git patch
hwpmc_piv.c.patch (text/plain), 756 bytes, created by
Svyatoslav
on 2017-03-13 11:42:23 UTC
(
hide
)
Description:
git patch
Filename:
MIME Type:
Creator:
Svyatoslav
Created:
2017-03-13 11:42:23 UTC
Size:
756 bytes
patch
obsolete
>diff --git a/sys/dev/hwpmc/hwpmc_piv.c b/sys/dev/hwpmc/hwpmc_piv.c >index 8b106fb..25a62b3 100644 >--- a/sys/dev/hwpmc/hwpmc_piv.c >+++ b/sys/dev/hwpmc/hwpmc_piv.c >@@ -809,7 +809,7 @@ p4_config_pmc(int cpu, int ri, struct pmc *pm) > mtx_lock_spin(&pc->pc_mtx); > cfgflags = P4_PCPU_GET_CFGFLAGS(pc,ri); > >- KASSERT(cfgflags >= 0 || cfgflags <= 3, >+ KASSERT(cfgflags >= 0 && cfgflags <= 3, > ("[p4,%d] illegal cfgflags cfg=%d on cpu=%d ri=%d", __LINE__, > cfgflags, cpu, ri)); > >@@ -835,7 +835,7 @@ p4_config_pmc(int cpu, int ri, struct pmc *pm) > phw->phw_pmc = NULL; > } > >- KASSERT(cfgflags >= 0 || cfgflags <= 3, >+ KASSERT(cfgflags >= 0 && cfgflags <= 3, > ("[p4,%d] illegal runcount cfg=%d on cpu=%d ri=%d", __LINE__, > cfgflags, cpu, ri)); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 217741
: 180765