Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix coverity scan issue CID 1568643 #28228

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wangleis
Copy link
Contributor

Details:

  • fix coverity scan issue CID 1568643

198 for (int i = 0; i < static_cast(numa_node_list.size()); i++) {
40. Condition j < static_cast(numa_node_list[i]->size()), taking true branch.
199 for (int j = 0; j < static_cast(numa_node_list[i].size()); j++) {

CID 1568643: (#1 of 1): Data race condition (MISSING_LOCK)
41. missing_lock: Accessing this->this->_numa_nodes without holding lock ov::CPU._cpu_mutex. Elsewhere, ov::CPU._numa_nodes is written to with CPU._cpu_mutex held 1 out of 1 times.
200 numa_node_map.insert(std::pair<int, int>(numa_node_list[i][j], i * _numa_nodes / _sockets + j));
201 }
202 }

Tickets:

  • ticket-id

@wangleis wangleis requested a review from a team as a code owner December 30, 2024 01:07
@github-actions github-actions bot added the category: inference OpenVINO Runtime library - Inference label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: inference OpenVINO Runtime library - Inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants