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

[SYCL] Initialize uninitialized handler_impl fields #15323

Merged
merged 5 commits into from
Sep 10, 2024

Conversation

ianayl
Copy link
Contributor

@ianayl ianayl commented Sep 6, 2024

In the same vein as #15237, this PR fixes additional uninitialized values recently discovered by Coverity. Similar to the resolution discussed in #15237, I have default-initialized integer values that are defined later on to 0 instead of another more complex solution.

Additionally, since I had set MExternalSempahore in handler_impl to nullptr, I added null checks where MExternalSemaphore is ultimately returned to ensure nullptr doesn't actually get passed into the UR. This is not necessarily necessary, but without this check Coverity would probably generate another hit because of it.

@ianayl ianayl changed the title [SYCL] Initialize handler_impl fields [SYCL] Initialize uninitialized handler_impl fields Sep 6, 2024
@ianayl ianayl marked this pull request as ready for review September 9, 2024 13:49
@ianayl ianayl requested a review from a team as a code owner September 9, 2024 13:49
@ianayl
Copy link
Contributor Author

ianayl commented Sep 10, 2024

@intel/llvm-gatekeepers This PR is ready, thanks!

@sommerlukas sommerlukas merged commit 178a42c into intel:sycl Sep 10, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants