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

ocrdma: Fix uninit_use issues #1582

Merged
merged 1 commit into from
Mar 14, 2025
Merged

ocrdma: Fix uninit_use issues #1582

merged 1 commit into from
Mar 14, 2025

Conversation

Kamalheib
Copy link
Contributor

Fix the following issues:
Error: UNINIT (CWE-457): [#def138] [important]
providers/ocrdma/ocrdma_main.c:118:2: var_decl: Declaring variable "resp" without initializer. providers/ocrdma/ocrdma_main.c:132:2: uninit_use: Using uninitialized value "resp.dev_id".

Error: UNINIT (CWE-457): [#def140] [important]
providers/ocrdma/ocrdma_verbs.c:359:2: var_decl: Declaring variable "resp" without initializer.
providers/ocrdma/ocrdma_verbs.c:373:2: uninit_use: Using uninitialized value "resp.rq_dbid".

Error: UNINIT (CWE-457): [#def141] [important]
providers/ocrdma/ocrdma_verbs.c:469:2: var_decl: Declaring variable "resp" without initializer.
providers/ocrdma/ocrdma_verbs.c:504:2: uninit_use: Using uninitialized value "resp.qp_id".

Fixes: ede3115 ("Added libocrdma files")

Fix the following issues:
Error: UNINIT (CWE-457): [#def138] [important]
providers/ocrdma/ocrdma_main.c:118:2: var_decl: Declaring variable "resp" without initializer.
providers/ocrdma/ocrdma_main.c:132:2: uninit_use: Using uninitialized value "resp.dev_id".

Error: UNINIT (CWE-457): [#def140] [important]
providers/ocrdma/ocrdma_verbs.c:359:2: var_decl: Declaring variable "resp" without initializer.
providers/ocrdma/ocrdma_verbs.c:373:2: uninit_use: Using uninitialized value "resp.rq_dbid".

Error: UNINIT (CWE-457): [#def141] [important]
providers/ocrdma/ocrdma_verbs.c:469:2: var_decl: Declaring variable "resp" without initializer.
providers/ocrdma/ocrdma_verbs.c:504:2: uninit_use: Using uninitialized value "resp.qp_id".

Fixes: ede3115 ("Added libocrdma files")
Signed-off-by: Kamal Heib <[email protected]>
@rleon
Copy link
Member

rleon commented Mar 14, 2025

Can you please post one PR which fixes all places?

Thanks

@rleon rleon merged commit 34944c1 into linux-rdma:master Mar 14, 2025
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.

2 participants