提交 8b55992f 编写于 作者: J John Ferlan 提交者: Michal Privoznik

xen: Add coverity[ptr_arith] and [sign_extension] tags

The old cpu bitmap setting algorithm causes a couple of complaints which
have been tagged.
上级 316ed412
......@@ -1795,8 +1795,11 @@ virXen_setvcpumap(int handle, int id, unsigned int vcpu,
return -1;
memset(pm, 0, sizeof(cpumap_t));
for (j = 0; j < maplen; j++)
for (j = 0; j < maplen; j++) {
/* coverity[ptr_arith] */
/* coverity[sign_extension] */
*(pm + (j / 8)) |= cpumap[j] << (8 * (j & 7));
}
if (hv_versions.hypervisor == 1) {
xen_op_v1 op;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册